Steve Byrne <[EMAIL PROTECTED]> writes:

> This, in effect, is that the interrupt mechanism does.  It sets an
> interrupted flag in the thread that user code can watch for, and I
> think it breaks you out of Thread.sleep or other thread related
> operations.

Right.  Sleeping and blocking I/O are interrupted by the interrupt
mechanism; when this happens, the I/O methods and the sleep method
throw an appropriate exception that tells you it is interrupted.

I want to remark that there is no silver bullet; so I am glad that a
silver bullet is deprecated.

-- 
[If you post a response, no need to cc me; if you cc me, please say so.]
Checking return values of system calls distinguishes educated 
programmers from uneducated ones, in the same way looking at people as 
you talk with them distinguishes children with good bringing up from 
those with no bringing up.

Reply via email to