Basic HTML version of Foils prepared May 19 99

Foil 13 Thread Control Methods

From Elements of Concurrent Programming in Java Tango Group Internal Technology Seminars -- Spring 99. by Lukasz Beca


start calls run method as an independent activity
stop irrevocably terminates a thread
isAlive returns true if thread started but not terminated
suspend temporarily halts a thread
resume makes thread to continue if it was suspended
sleep suspends for a given time
join suspends caller till the target thread completes
interrupt causes a sleep, wait, or join to abort with InterruptedException



© 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 Wed May 19 1999