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


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

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