English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
[ANN] coThreads 0.10
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-09-20 (08:28)
From: Zheng Li <li@p...>
Subject: Re: [ANN] coThreads 0.10


Erik de Castro Lopo <mle+ocaml@mega-nerd.com> writes:
> skaller wrote:
>> Why don't you just use a different module name?
> I agree. Although it is nice the have the Cothreads API be so similar
> to the native Threads module, I can't possibly imagine ever wanting
> to go from Cothreads back to Threads.

It's easy to neglect that coThreads actually comes with a compatible
threads.cm(x)a for the process engine. So if you're working with legacy code
but wish to try the process engine, you can still using Thread module and
threads library, and don't have to change anything except the include path. 

On the other hand, if you're using shared-memory concurrency in your legacy
code, you'll have to port it with STM --- the only compatible way to have
shared-memory across different engines.

Zheng Li