Hi
we want to know that What are the actions that can occur when a thread enters blocked state?
What are the actions that can occur when a thread enters blocked state?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Satyapriya NayakRank #47 · 31.5K reputationPosted May 30, 2012, 3:03 AM EDT
The actions that get performed when a thread enters the blocked state are as follows:
1. A thread is in the blocked state due to the call of a sleep() method.
2. Thread calls an operation that requires the resource which is being used by some other thread in process.
3. A thread calls the method wait().
4. Thread locks an object which is being associated with another thread.
5. A suspend() method of thread is called.
Thanks