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: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] Will Ocaml use a 4-way SMP box without splitting the program into separate processes?
> > > 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? 

Yes.  The GC and many parts of the runtime system common to both
compilers are not thread-safe.

- Xavier Leroy
-------------------
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