Calling t.stop()
causes a ThreadDeath exception to be thrown in the called
thread t
. Because t.stop()
can be called at any time, every statement
t
executes appears to a potential thrower of a ThreadDeath exception.
This potential is the reason t.stop()
is said to provide
asynchronous
termination.
This page last modified on 16 July 2003.