T
Timo Nentwig
Hi!
I've a ThreadGroup with several threads..so, since ThreadGroup.stop() is as
insecure as Thread.stop() how do I stop all threads in a ThreadGroup().
I actually override all Thread's stop method:
public void stop()
{
thread = null;
}
So, ThreadGroup.stop() should call all thread's stop() method which is just
safe, isn't it?
Do I have to do this manually?! I.e. enumerate() all threads in a
ThreadGroup(), invoking their stop() and destroy()ing the ThreadGroup after
that???
I've a ThreadGroup with several threads..so, since ThreadGroup.stop() is as
insecure as Thread.stop() how do I stop all threads in a ThreadGroup().
I actually override all Thread's stop method:
public void stop()
{
thread = null;
}
So, ThreadGroup.stop() should call all thread's stop() method which is just
safe, isn't it?
Do I have to do this manually?! I.e. enumerate() all threads in a
ThreadGroup(), invoking their stop() and destroy()ing the ThreadGroup after
that???