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.
- Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2... David Young
- RE: Deprecated `Thread.stop()' in forthcoming JDK 1.2... Harold G. Andrews II
- Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2... Michael Sinz
- Re: Deprecated `Thread.stop()' in forthcoming JD... peter . pilgrim
- Re: Deprecated `Thread.stop()' in forthcomin... Pavel Tolkachev
- Re: Deprecated `Thread.stop()' in forthc... peter . pilgrim
- Re: Deprecated `Thread.stop()' in fo... peter . pilgrim
- Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2... David Wall
- Re: Deprecated `Thread.stop()' in forthcoming JD... Nelson Minar
- Re: Deprecated `Thread.stop()' in forthcoming JD... Steve Byrne
- Re: Deprecated `Thread.stop()' in forthcomin... Albert Y.C. Lai
- Re: Deprecated `Thread.stop()' in forthc... Pavel Tolkachev
- Re: Deprecated `Thread.stop()' in forthc... peter . pilgrim
- Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2... Michael Sinz
- Re: Deprecated `Thread.stop()' in forthcoming JD... Nelson Minar
- Re: Deprecated `Thread.stop()' in forthcoming JD... Pavel Tolkachev
- Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2... Michael Sinz