How do you ensure that isInterrupted() actually reflects the status of the thread?

How do you ensure that isInterrupted() actually reflects the status of the thread?



Answer: in the Runnable class, put Thread.currentThread.interrupt() in the catch block for the InterruptedException.


Learn More :

Multithreading and Concurrent Processing

Learn More Multiple Choice Question :