A thread is always in one of the five states shown in this diagram, which includes the most common methods for changing state: |
Blocked |
Newborn |
Dead |
Runnable |
Running |
sleep( ) |
suspend( ) |
wait( ) |
block on IO |
resume( ) |
notify( ) |
IO complete |
start( ) |
stop( ) |
stop( )* |
stop( ) |
yield( ) |