[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Threads again
- From: <w.couwenberg@...>
- Date: Mon, 30 Jan 2006 9:21:01 +0100
> But still I'm curious. What if I modify the garbage collector and
> make it lock the same mutex before it starts? Is GC the only problem
> here, and this recipe will solve it?
No, the other threads are not contending for that mutex. So when some thread is about to start a GC cycle you'll have to actively interrupt all other threads. To this end you could use a hook. However, I suspect that it is hardly worth the trouble. Anyway, if you come up with something it would be interesting to hear about it!
--
Wim