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.
posted 14 years ago
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.