From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id B4E0ABC48 for ; Fri, 25 Mar 2005 20:12:01 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2PJC0GF015359 for ; Fri, 25 Mar 2005 20:12:00 +0100 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 UAA13845 for ; Fri, 25 Mar 2005 20:12:00 +0100 (MET) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2PJBxNn020428 for ; Fri, 25 Mar 2005 20:11:59 +0100 Received: by rproxy.gmail.com with SMTP id z35so1171961rne for ; Fri, 25 Mar 2005 11:11:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=gm+a9G1z+4BMIf3/qQtQQSs5/3BFz6A93SPsXuklPFvjo034zHp6QItJCIjczSKJ0fbv8yIhVVmQty3y9Cn9rb9gc/iXkLLKFy7clqCj145BmsFfHhB1pm+ASp+HVNz9JfIP8uLykwRkiQ0wkj98pUvR99DYMHNyILPGPml5z6w= Received: by 10.38.66.58 with SMTP id o58mr2757254rna; Fri, 25 Mar 2005 11:11:59 -0800 (PST) Received: by 10.39.3.44 with HTTP; Fri, 25 Mar 2005 11:11:58 -0800 (PST) Message-ID: Date: Fri, 25 Mar 2005 11:11:58 -0800 From: Kip Macy Reply-To: Kip Macy To: Alex Baretta Subject: Re: [Caml-list] Thread and Unix select Cc: Ocaml In-Reply-To: <4242D096.9010701@barettadeit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <4242D096.9010701@barettadeit.com> X-Miltered: at concorde with ID 42446280.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4244627F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 non-zero:01 baretta:01 baretta:01 caml-list:01 beginner's:01 ocaml:01 beginners:01 bug:01 wrote:01 unix:01 unix:01 bin:01 thread:02 thread:02 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=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: 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. -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 >