A sleeping thread that recieves an interrupt() call moves immediately into the Ready state; when it gets to run, it will execute its InterruptedException handler.
<pre><font color=#7b007b> What does it mean "it will execute its InterruptedException handler?" Does it mean an InterruptedException is being caught? Why doesn't it continue to run the run() method? Thanks, Jenny </pre></font>
Hi Rob, Thanks for both of your replies. Your code clarifies the question on InterruptedException. Can you answer my other question of whether the sleeping Thread continues to run after its sleep being interrupted? Thanks, Jenny