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 EAA32312; Tue, 17 Jul 2001 04:01:14 +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 EAA32340 for ; Tue, 17 Jul 2001 04:01:12 +0200 (MET DST) Received: from str12.sobor.org (adsl-63-198-183-99.dsl.snfc21.pacbell.net [63.198.183.99]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f6H21B117346; Tue, 17 Jul 2001 04:01:11 +0200 (MET DST) Received: from quasar.ipa.nw.ru (anza.sobor.org [192.168.123.51]) by str12.sobor.org (Postfix) with ESMTP id AAE20ACBA9; Mon, 16 Jul 2001 18:48:58 -0700 (PDT) Message-ID: <3B539C0A.B8FA83A@quasar.ipa.nw.ru> Date: Mon, 16 Jul 2001 18:59:38 -0700 From: "Alexander V. Voinov" Organization: Fear of the Lord is the beginning of wisdom X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Xavier Leroy Cc: Mattias Waldau , Caml list Subject: Re: [Caml-list] Will Ocaml use a 4-way SMP box without splitting the program into separate processes? References: <20010715133250.B4478@pauillac.inria.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi Xavier, Xavier Leroy wrote: > > > As I understand it, Ocaml has one master lock for handling threading. > > Correct. > > > Doesn't this mean that a process can never use more than one processor? > > Yes, if the process is entirely composed of Caml code. Long-running C > primitives release the lock, meaning that your 4-processor machine can > have 1 processor running Caml code and 3 executing C primitives, > e.g. database queries. Is this true for both native and bytecode? Alexander ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr