1 | A thread is always in one of the five states shown in this diagram, which includes the most common methods for changing state: |
2 | Blocked |
3 | Newborn |
4 | Dead |
5 | Runnable |
6 | Running |
7 | sleep( ) |
8 | suspend( ) |
9 | wait( ) |
10 | block on IO |
11 | resume( ) |
12 | notify( ) |
13 | IO complete |
14 | start( ) |
15 | stop( ) |
16 | stop( )* |
17 | stop( ) |
18 | yield( ) |