Saved Bookmarks
| 1. |
What Happens When You Invoke A Thread's Interrupt Method While It Is Sleeping Or Waiting? |
|
Answer» When a task's interrupt() method is executed, the task ENTERS the READY STATE. The NEXT time the task enters the RUNNING state, an InterruptedException is thrown. When a task's interrupt() method is executed, the task enters the ready state. The next time the task enters the running state, an InterruptedException is thrown. |
|