• Dear Guest, Please do NOT forget to join our JAVA JOBS (ONLY) FACEBOOK GROUP to be aware of latest JAVA openings, and you may also post any JAVA related queries/jobs.

What is meant by Interrupt Status Flag ?

The Interrupt mechanism is implemented using an internal flag known as the Interrupt Status.

- Invoking Thread.interrupt() sets this flag. When a Thread checks for an interrupt by invoking the static method Thread.interrupted(), interrupt status is cleared.

- The non-static Thread.isInterrupted(), which is used by one thread to query the interrupt status of another, does not change the interrupt status flag.

- By convention, any method that exits by throwing an InterruptedException clears interrupt status when it does so.

- However, it's always possible that interrupt status will immediately be set again, by another thread invoking interrupt.
Though (Interrupt Flag) may be an arrangement banner spot in the x86 architecture's FLAGS register, which determines if or not those cpu will handle maskable fittings interrupts.