Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Will Ocaml use a 4-way SMP box without splitting the program into separate processes?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alexander V. Voinov <avv@q...>
Subject: Re: [Caml-list] Will Ocaml use a 4-way SMP box without splitting the program into separate processes?
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