Thread Constructors and Methods, cont.
void interrupt()
Interrupts the running thread.
static boolean interrupted()
Tests to see whether the current thread has been interrupted.
boolean isAlive()
Tests to see whether the thread is currently running.
void setPriority(int p)
Sets priority p for this thread.
Previous slide
Next slide
Back to first slide
View graphic version