From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA16528; Wed, 4 Apr 2001 19:30:58 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA16612 for ; Wed, 4 Apr 2001 19:30:57 +0200 (MET DST) Received: from ontil.ihep.su (ontil.ihep.su [194.190.161.63]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f34HUtH07974 for ; Wed, 4 Apr 2001 19:30:55 +0200 (MET DST) Received: from localhost (vsl@localhost) by ontil.ihep.su (8.11.0/8.11.0) with ESMTP id f34HSJ403306; Wed, 4 Apr 2001 21:28:19 +0400 Date: Wed, 4 Apr 2001 21:28:18 +0400 (MSD) From: Vitaly Lugovsky To: Ohad Rodeh cc: Subject: Re: [Caml-list] Suspending threads In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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