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
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: 2001-04-04 (17:30)
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