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 JAA16075; Tue, 13 Apr 2004 09:45:05 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 JAA15597 for ; Tue, 13 Apr 2004 09:45:04 +0200 (MET DST) Received: from rabelais.socialtools.net (rabelais.socialtools.net [81.2.94.243]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3D7j2YM008626 for ; Tue, 13 Apr 2004 09:45:03 +0200 Received: by rabelais.socialtools.net (Postfix, from userid 108) id 8B7D323331; Tue, 13 Apr 2004 08:45:02 +0100 (BST) Received: from socialtools.net (chaucer.socialtools.net [81.2.94.242]) by rabelais.socialtools.net (Postfix) with ESMTP id 750C2232DF; Tue, 13 Apr 2004 08:45:01 +0100 (BST) Message-ID: <407B9A6F.6080409@socialtools.net> Date: Tue, 13 Apr 2004 08:44:47 +0100 From: Benjamin Geer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-gb, en, fr, it MIME-Version: 1.0 To: John Goerzen Cc: Brian Hurt , caml-list@inria.fr Subject: Re: [Caml-list] Threading: Using and Building References: <20040412151948.GA11370@excelhustler.com> <20040413021536.GA969@complete.org> In-Reply-To: <20040413021536.GA969@complete.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on rabelais.socialtools.net X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 threading:01 2004:99 threading:01 threads:01 threads:01 python:01 caml:01 caml:01 blocking:01 thread:02 thread:02 wrote:03 wrote:03 explanation:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 267 John Goerzen wrote: > On Mon, Apr 12, 2004 at 07:37:09PM -0500, Brian Hurt wrote: > >>The threading is all user-space threading. It doesn't take advantage of >>multiple CPUs, doesn't use system threads, if one thread blocks they all >>block, etc. That's not true; see Xavier's explanation: http://caml.inria.fr/archives/200211/msg00274.html Specifically, 'while a thread is blocked on a network read, other threads may proceed'. > However, Python uses true > threads, so it is fine to call blocking system calls in threads (it will > not block the entire program). This is also the case in Caml; see above. Ben ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners