Browse thread
Can GC be BLOCKed?
[
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: | 2006-12-02 (12:15) |
From: | Philippe Wang <lists@p...> |
Subject: | Re: [Caml-list] Can GC be BLOCKed? |
Dmitry Bely a écrit : > Sure, I know that. But C thread and OCaml thread can run in parallel. > Why not to do gc in another thread when you are in C and there is no > job for OCaml? Be careful with that... The global mutex does exist because when the GC occurs, some objects can be <<moved>> ! (then their addresses change) So it's dangerous to compute in parallel... -- Philippe Wang