"Roedy Green" <look-> wrote in message
news:...
> On Thu, 27 May 2004 11:58:52 +0200, Michael Borgwardt
> <> wrote or quoted :
>
> >It becomes *egligible* for garbage collection when its run() method
> >has finished executing. When it will actually *be* garbage collected
> >is up to the JVM to decide.
>
> Be careful. If you instantiate a Thread but never get around to
> calling the start method, it will hang around forever,
> even if you drop all references to it.
>
> see http://mindprod.com/jgloss/packratting.html
There is nothing the JavaDoc for Thread or ThreadGroup
that indicates that a JVM implementation is required
to hold an inactive Thread reference in the ThreadGroup.
When instantiating the Thread, there is nothing that
indicates that the Thread instance is referenced in the
ThreadGroup before the thread is started. The Thread
instance may hold a reference to the ThreadGroup to
which the thread will belong after the start() method
is called. The start() method could add the Thread
reference to the ThreadGroup at that time.
Your glossary is quite likely describing a particular
implementation detail that can change across different
JVM releases and almost certainly across different JVM
vendors.