Light weight concurrency in OCaml: continuations, monads, events, and friends - Archive ouverte HAL Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2010

Light weight concurrency in OCaml: continuations, monads, events, and friends

Résumé

We explore various ways to implement (very) light weight concurrency in OCaml, in both direct and indirect style, and compare them to system and VM threads approaches. Three simple examples allow us to examine both the coding style and the performances. The cost of context switching, thread creation and the memory footprint of a thread are compared. The trampolined style of programming seems to be the best both at CPU and memory demands.
Fichier principal
Vignette du fichier
lwc.pdf (306.67 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-00493213 , version 1 (18-06-2010)

Identifiants

  • HAL Id : hal-00493213 , version 1

Citer

Christophe Deleuze. Light weight concurrency in OCaml: continuations, monads, events, and friends. 2010. ⟨hal-00493213⟩

Collections

UGA LCIS
92 Consultations
956 Téléchargements

Partager

Gmail Facebook X LinkedIn More