[Mono-list] Interrupting the garbage collector

Fergus Henderson fjh@cs.mu.oz.au
Tue, 22 Oct 2002 05:12:30 +1000

On 21-Oct-2002, Holger Arnold <harnold@gmx.de> wrote:
> Hello,
> 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
multiple threads.)

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 <fjh@cs.mu.oz.au>  |  "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.