Login  Register

Re: Any way to Kill a thread?

Posted by dscho on Jul 16, 2008; 1:04pm
URL: http://imagej.273.s1.nabble.com/Any-way-to-Kill-a-thread-tp3695586p3695589.html

Dear Gabriel,

On Wed, 16 Jul 2008, Gabriel Landini wrote:

> On Wednesday 16 July 2008 12:49:58 Johannes Schindelin wrote:
> > If you have a JDK (as opposed to just a JRE) you can make a new plugin
> > without restarting ImageJ, paste the code, compile and run it.
>
> It gives a warning :
>
> Thread_Killer.java:41: warning: [deprecation] stop() in java.lang.Thread has
> been deprecated
>                 threads[threadIndex].stop();

Yes, I know.  However, the description of the deprecation is less than
satisfying: Sun asks you to modify the _to-be-killed_ thread, which is not
an option here.

Ciao,
Dscho