Have a method, such as stop(), that sets a boolean, and in the thread that's running, have it loop testing if the boolean has been set by stop() or not, and if so, then exit itself. Stopping a thread otherwise is problematic because it is not clear where it was when it was stopped (it's an ugly stop). I've heard it mentioned that it can also leave some threads in a bad a state, but that seems more like a bug with the JVM not doing clean-up to me. But stopping nicely is always best... David
- Deprecated `Thread.stop()' in forthcoming JDK 1.2. ... peter . pilgrim
- Re: Deprecated `Thread.stop()' in forthcoming J... Pavel Tolkachev
- Re: Deprecated `Thread.stop()' in forthcomi... Daniel W. Dulitz x108
- Re: Deprecated `Thread.stop()' in forthcoming J... David Young
- RE: Deprecated `Thread.stop()' in forthcoming J... Harold G. Andrews II
- Re: Deprecated `Thread.stop()' in forthcoming J... Michael Sinz
- Re: Deprecated `Thread.stop()' in forthcomi... peter . pilgrim
- Re: Deprecated `Thread.stop()' in forth... Pavel Tolkachev
- Re: Deprecated `Thread.stop()' in f... peter . pilgrim
- Re: Deprecated `Thread.stop()'... peter . pilgrim
- Re: Deprecated `Thread.stop()' in forthcoming J... David Wall
- Re: Deprecated `Thread.stop()' in forthcomi... Nelson Minar
- Re: Deprecated `Thread.stop()' in forthcomi... Steve Byrne
- Re: Deprecated `Thread.stop()' in forth... Albert Y.C. Lai
- Re: Deprecated `Thread.stop()' in f... Pavel Tolkachev
- Re: Deprecated `Thread.stop()' in f... peter . pilgrim
- Re: Deprecated `Thread.stop()' in forthcoming J... Michael Sinz
- Re: Deprecated `Thread.stop()' in forthcomi... Nelson Minar
- Re: Deprecated `Thread.stop()' in forthcomi... Pavel Tolkachev
- Re: Deprecated `Thread.stop()' in forthcoming J... Michael Sinz