Browse thread
[Caml-list] Will Ocaml use a 4-way SMP box without splitting the program into separate processes?
-
Mattias Waldau
-
Xavier Leroy
- William Chesters
- Alexander V. Voinov
-
Xavier Leroy
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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