[Mono-list] Interrupting the garbage collector
Tue, 22 Oct 2002 05:12:30 +1000
On 21-Oct-2002, Holger Arnold <firstname.lastname@example.org> wrote:
> a short question relating to the garbage collector: Assume that we have a
> managed application using n threads T_1, ..., T_n. Let thread T_i trigger a
> garbage collection. Which of the following assumptions are correct?
> (1) All threads except T_i are stopped and the garbage collection runs in
> thread T_i.
For Posix threads, this one is correct.
(However, if you use -DPARALLEL_MARK when building the Boehm collector,
then it will do parts of the garbage collection in parallel using
I don't know off-hand how Mono maps CLR threads to Posix threads,
though I'd guess it's most likely one-to-one.
Fergus Henderson <email@example.com> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.