This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi There are only five states a thread can be in. new,runnable,running,blocked,dead. Blocked state includes when a thread is put to sleep using sleep method, or when a thread is waiting for an object lock is blocked using wait/notify protocol. Go through this tutorial. Hope that helps.
pramila, The link that you have inserted in your message takes me to a page that says that a thread can be in one of the four states: 1. New 2. Runnable 3. Dead 4. Blocked. Any thoughts on this. I am working my 1.4 certification. Thread is one topic that is really giving me headaches.
Joined: May 05, 2006
Hi Ashok, Any thread which is ready for execution(waiting for CPU time) would be kept in runnable pool. Once it gets CPU time(currently executing) then it is in Running state.