File: lwtoc.wiki

package info (click to toggle)
ocsigenserver 2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,484 kB
  • sloc: ml: 11,641; makefile: 707; sh: 619
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]].