1) is the Static Objects eligible for the eligibilization of GC.
3)THe thread for which the run method completes or it exits the program is considered as the Dead Thread.
All the other thread are considered live thread i.e other states like block,wait...
4)The GC will run when needed irrespective whether the user invokes it or not?
Originally posted by Edwin Dalorzo:
All the other thread are considered live thread i.e other states like block,wait...
I think that's not true. A thread is alive only after its start method have been called and befored its run method has completed.
Cheers,<br />Jagadesh.<br /> <br />--------------------------------<br />SCJP 1.4 , SCBCD 1.3 , SCWCD 1.4<br />--------------------------------
Tony Morris
Java Q&A (FAQ, Trivia)
Originally posted by Tony Morris:
After start() has been called, the thread enters the "ready to run" state. The thread may enter the "running" state at the discretion of the thread scheduler which is completely indeterminate.
On a related note,
http://qa.jtiger.org/GetQAndA.action?qids=51
Cheers,<br />Jagadesh.<br /> <br />--------------------------------<br />SCJP 1.4 , SCBCD 1.3 , SCWCD 1.4<br />--------------------------------
SCJA 1.0 (98%), SCJP 1.4 (98%)
Cheers,<br />Jagadesh.<br /> <br />--------------------------------<br />SCJP 1.4 , SCBCD 1.3 , SCWCD 1.4<br />--------------------------------
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |