Lwt: a cooperative thread library - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2008

Lwt: a cooperative thread library

Jérôme Vouillon
  • Fonction : Auteur
  • PersonId : 830580

Résumé

We present a cooperative thread library for Objective Caml. The library is entirely written in Objective Caml and does not rely on any external C function. Programs involving threads are written in a monadic style. This makes it possible to write threaded code almost as regular ML code, even though it has a different semantics. Cooperative threads are especially well suited for concurrent network applications, where threads perform little computation and spend most of their time waiting for input or output, at which time other threads can run. This library has been successfully used in the Unison file synchronizer and the Ocsigen Web server.
Fichier non déposé

Dates et versions

hal-00495983 , version 1 (29-06-2010)

Identifiants

Citer

Jérôme Vouillon. Lwt: a cooperative thread library. Workshop on ML, 2008, Victoria, Canada. pp.3-12, ⟨10.1145/1411304.1411307⟩. ⟨hal-00495983⟩
306 Consultations
0 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More