What happens when you invoke a thread's interrupt method while it issleeping or waiting
When a task's interrupt() method is executed, the task enters the ready state. The nexttime the task enters the running state, an InterruptedException is thrown.
-
Interview Candidate
- Aug 26th, 2004
- 1
- 2123
Showing Answers 1 - 1 of 1 Answers
What happens when you invoke a thread's interrupt method while it issleeping or waiting