Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Functional design for a basic simulation pipe.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Functional design for a basic simulation pipe.
On Thu, 2007-10-11 at 10:54 +0100, Hugo Ferreira wrote:
> skaller wrote:

> > The pthreads/Event module based approach is fully natural
> > but doesn't scale because pthreads don't, and it is inefficient
> > because it synchronises using primitives designed to support
> > multi-processing when basic circuits do not need any 
> > parallelism.
> > 
> Actually if I am not mistaken the example I refer to  was using
> pthreads. When I read your code I assumed they were the equivalent of
> pthreads or some lighter version (user land, green threads). I guess
> this is not so.

Yes they're user land (green) threads, cooperative multi-tasking,
fibres, or whatever you want to call them. 

John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: