Java / Java Multithreading
What is the Threads interrupt flag?
The interrupt flag or interrupt status, is an internal Thread flag that is set when the thread is interrupted. To set it, simply call thread.interrupt() on the thread object.
If a thread is currently inside one of the methods that throw InterruptedException (wait, join, sleep), then this method immediately throws InterruptedException.
More Related questions...