Re: Joining all non-daemon threads

2001-09-18 Thread Bryce McKinlay
Tom Tromey wrote: Patrick == Patrick Doyle [EMAIL PROTECTED] writes: Patrick What's the easiest way to implement this? Does ThreadGroup Patrick provide enough functionality to do it? Or do I have to Patrick maintain a list of active threads myself? Does Classpath Patrick have any additional

Joining all non-daemon threads

2001-09-17 Thread Patrick Doyle
I'm wondering how JVMs implement non-daemon threads. The VM must join all active non-daemon threads before it exits, so that the VM doesn't exit until all non-daemon threads terminate. Then, I gather, when all non-daemon threads are done, it must terminate all daemon threads and then exit.

Re: Joining all non-daemon threads

2001-09-17 Thread Tom Tromey
Patrick == Patrick Doyle [EMAIL PROTECTED] writes: Patrick What's the easiest way to implement this? Does ThreadGroup Patrick provide enough functionality to do it? Or do I have to Patrick maintain a list of active threads myself? Does Classpath Patrick have any additional functionality to