previous |
start |
next
Terminating Threads
- Thread terminates when run exits
- Sometimes necessary to terminate running thread
- Don't use deprecated stop method
- Interrupt thread by calling interrupt
- Thread must cooperate and exit its run
- Thread has chance to clean up
previous |
start |
next