You can display the properties of a thread, including its state, by right-clicking the thread in the Threads view and choosing Properties. The Properties window displays the following information about the thread:
State | Description |
---|---|
Monitor | Thread is waiting on a Java monitor. |
Not Started | Thread has not yet been started. |
Running | Thread is runnable. |
Sleeping | Thread is sleeping. Thread.sleep() was called. |
Unknown | Thread status is unknown. |
Wait | Thread is waiting. Object.wait() was called. |
Zombie | Thread has completed execution. |
The following table describes the thread states when using the JDK 1.1 debugger.
State | Description |
---|---|
(empty) | Thread has not yet been started. |
Running | Thread is runnable. | Sleeping | Thread is sleeping. Thread.sleep() was called. |
Waiting in a monitor | Thread is waiting on a Java monitor. |
Cond. waiting | Thread is waiting. Object.wait() was called. |
At breakpoint | Thread is suspended because a breakpoint was hit. |
Suspended | Thread is suspended by a debugger. |
Zombie | Thread has completed execution. |
See also | |
---|---|
Viewing the Variables in a Thread
Viewing the Call Stack for a Thread Threads View |