- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. - What truth? - That there is no spoon!!!
posted 12 years ago
There are at least two reasons the make the thread not eligible for gc : a) it is running b) the thread object is referred from the ThreadGroup main This code shows that even if a thread has finished a reference to it is still in the related thread group.
And this one shows that even nullifying the thread group, gd is not eligible for garbage collection. Presumably because is still referenced from somewhere else.
[ October 10, 2003: Message edited by: Jose Botella ]