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


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



© 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