RE: Thread/VMThread proposal

2003-07-30 Thread Jeroen Frijters
Brian Jones wrote: > You may wish to check that a "stillborn" thread has a null thread > group after stop() has been called. I did confirm already that > threads that run and are stopped are seen to have a null thread group. The Sun JDK ignores stop() when called on an unstarted thread (and the g

Re: Thread/VMThread proposal

2003-07-29 Thread Brian Jones
David Holmes <[EMAIL PROTECTED]> writes: > > You may wish to check that a "stillborn" thread has a null thread > > group after stop() has been called. I did confirm already that > > threads that run and are stopped are seen to have a null > > thread group. > > A thread is removed from its thread

RE: Thread/VMThread proposal

2003-07-29 Thread David Holmes
> You may wish to check that a "stillborn" thread has a null thread > group after stop() has been called. I did confirm already that > threads that run and are stopped are seen to have a null > thread group. A thread is removed from its threadgroup only when the thread terminates. If stop() is in

Re: Thread/VMThread proposal

2003-07-29 Thread Brian Jones
Jeroen Frijters <[EMAIL PROTECTED]> writes: > > - You may need more lifecycle management in VMThread. For example, a > > thread that has stop() called on it before it is started is > > "stillborn". > > The docs do say that, but my tests suggest that Sun just ignores stop() > when called on an uns

RE: Thread/VMThread proposal

2003-07-28 Thread David Holmes
> Thanks for taking the time to comment! No problem. > > - You may need more lifecycle management in VMThread. For > > example, a thread that has stop() called on it before it is started is > > "stillborn". > > The docs do say that, but my tests suggest that Sun just > ignores stop() when called

RE: Thread/VMThread proposal

2003-07-28 Thread Jeroen Frijters
Hi David, Thanks for taking the time to comment! David Holmes wrote: > - Thread.VMThread and Thread.group must be volatile as they are > accessed by multiple threads without synchronization via isAlive() - > or else ensure everything that reads them only does so while holding > the thread's lock.