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 39A15BCAF for ; Sat, 11 Jun 2005 23:03:10 +0200 (CEST) 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 j5BL39Mt020092 for ; Sat, 11 Jun 2005 23:03:09 +0200 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 XAA24077 for ; Sat, 11 Jun 2005 23:03:09 +0200 (MET DST) Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.79]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j5BL39xJ010748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 11 Jun 2005 23:03:09 +0200 Received: from [192.168.144.129] (213-223-57-193.dti.cegetel.net [213.223.57.193]) by smtp.cegetel.net (Postfix) with ESMTP id 9D1511A42DB; Sat, 11 Jun 2005 23:03:08 +0200 (CEST) Message-ID: <42AB518E.8070106@univ-savoie.fr> Date: Sat, 11 Jun 2005 23:03:10 +0200 From: Christophe Raffalli User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: fr, en MIME-Version: 1.0 To: james woodyatt , caml-list@inria.fr Subject: Re: [Caml-list] Threads References: <1118426167.17936.32.camel@chunky.valdosta.edu> <42AA96CB.2050706@univ-savoie.fr> <55fb30900b308b38d2724c53008f7c91@wetware.com> In-Reply-To: <55fb30900b308b38d2724c53008f7c91@wetware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 42AB518D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42AB518D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; christophe:01 raffalli:01 raffalli:01 univ-savoie:01 caml-list:01 threads:01 woodyatt:01 christophe:01 threads:01 runtime:01 posix:01 posix:01 ocaml:01 2005,:98 46,:98 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.2 X-Spam-Level: james woodyatt a écrit : > On 11 Jun 2005, at 00:46, Christophe Raffalli wrote: > >> >> No there is a global mutex for caml thread. The only thing you can do >> is have one Caml thread and many C threads running in the same time. >> >> This starts really to be an annoying limitation of the Caml runtime >> now that you can have easily two dual core processors in one machine >> ... (means four CPU) > > > Not for me it isn't-- I gave up cooperative scheduling with Mac OS 9. > > Now, when I want concurrent, preëmptive multiprocessing, I call > fork(2) [and often exec(2)], like Nature intended. I don't know why > you folks on Win32 platforms continue to put up with such abominable > support for POSIX interfaces. > > Does not depend what you use (Posix, win32 threads etc ...), OCaml does not support two threads accessing the memory at the same time.