Basic HTML version of Foils prepared Sept 21 1998

Foil 7 The Life of a Thread

From Java Tutorial 98- 4: Multi-Treading, Useful Java Classes, I/O and Networking NAVO Tutorial -- Sept 23 1998. by Geoffrey C. Fox, Nancy McCracken


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( )

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998