destroy
Destroy the thread.
thread.join(int millisecs)
Blocks the calling thread for up to the specified time
until thread has terminated.
thread.interrupt()
Interrupts thread: causes it to return from a blocking method call such as sleep().
object.wait(long millisecs, int
nanosecs)
Blocks the calling thread until a
call made to notify() or notifyAll() on object wakes the thread, or the thread is
interrupted, or the specified time has elapsed.
object.notify(), object.notifyAll()
Wakes, respectively, one or all of any threads that
have called wait() on object.