From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id F0B51BC48 for ; Fri, 25 Mar 2005 21:58:49 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2PKwnGt029096 for ; Fri, 25 Mar 2005 21:58:49 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA16251 for ; Fri, 25 Mar 2005 21:58:49 +0100 (MET) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2PKwmFN025348 for ; Fri, 25 Mar 2005 21:58:48 +0100 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1DEvtF-0001bR-00; Fri, 25 Mar 2005 21:58:45 +0100 Received: from [84.167.129.66] (helo=gate.lan.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1DEvtF-0004u8-00; Fri, 25 Mar 2005 21:58:45 +0100 Received: from flakew.lan.gerd-stolpmann.de (flakew [192.168.0.32]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 7D138C04C; Fri, 25 Mar 2005 21:58:45 +0100 (CET) Subject: Re: [Caml-list] Thread and Unix select From: Gerd Stolpmann To: Kip Macy Cc: Alex Baretta , Ocaml In-Reply-To: References: <4242D096.9010701@barettadeit.com> Content-Type: text/plain Date: Fri, 25 Mar 2005 21:58:43 +0100 Message-Id: <1111784324.5881.135.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at nez-perce with ID 42447B89.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42447B88.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 gerd:01 stolpmann:01 gerd:01 non-zero:01 ocaml:01 baretta:01 baretta:01 caml-list:01 beginner's:01 ocaml:01 beginners:01 bug:01 beginner's:01 beginners:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Am Freitag, den 25.03.2005, 11:11 -0800 schrieb Kip Macy: > Without looking at the implementation, I would guess that a > Unix.select with a non-zero timeout would cause the whole process to > block - whereas an equivalent call to Thread.select would only cause > the calling thread to block. Once upon a time, this was the intention of Thread.select. In current ocaml, one can also call Unix.select, and only the calling thread is blocked. Gerd > -Kip > > > On Thu, 24 Mar 2005 15:37:10 +0100, Alex Baretta wrote: > > What are the differences between Unix.select and Thread.select? Is it > > safe to use the former in a multithreaded program? > > > > Alex > > > > -- > > ********************************************************************* > > http://www.barettadeit.com/ > > Baretta DE&IT > > A division of Baretta SRL > > > > tel. +39 02 370 111 55 > > fax. +39 02 370 111 54 > > > > Our technology: > > > > The Application System/Xcaml (AS/Xcaml) > > > > > > The FreerP Project > > > > > > _______________________________________________ > > Caml-list mailing list. Subscription management: > > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > > Archives: http://caml.inria.fr > > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > > Bug reports: http://caml.inria.fr/bin/caml-bugs > > > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------