File: lwtoc.wiki

package info (click to toggle)
ocsigenserver 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,508 kB
  • ctags: 1,646
  • sloc: ml: 11,732; makefile: 735; sh: 625
file content (7 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
=Cooperative threads

Ocsigen is not using the usual preemptive threads model to handle simultaneaous requests. Instead of this, it is based on a model of //cooperative threads//. Ocsigen's cooperative threads are implemented in monadic style by Jérôme Vouillon, which makes them really easy to use.

If you want to write an extension for Ocsigen or a Web site with Eliom, you must use this thread model.

See [[wiki(21):|Lwt's documentation]].