| Test whether the current thread has been interrupted with
Thread.interrupt(). If so, a ThreadDeath exception is thrown
to kill it cleanly. If a background thread
calls check() periodically, then Thread.interrupt() will
kill it cleanly and safely at the next check() call. Catch ThreadDeath
or use a try-finally construct if your background thread needs to do
any resource cleanup.
exception: ThreadDeath - if and only if Thread.currentThread().isInterrupted() is true. |