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
-
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: | 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