Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] Future of labels
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Vitaly Lugovsky <vsl@o...>
Subject: Re: [Caml-list] Suspending threads
On Wed, 4 Apr 2001, Ohad Rodeh wrote:

> List,
>   I'm trying to suspend a thread and then
> have another thread wake it up. However,
> I can't find a suspend (nor a dual wake-up) function in
> the Threads library.
>
>   Any help?

  I'm using a condition for it. Suspended thread waits a condition
to be released, and other releases it after forwarding a request to
be executed in suspended thread.

  If you need an example, I can send you a threads
pool module used in my multithreaded server. It looks much better then
the same Java code. ;)

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr