Killing non-waiting thread

323 Views Asked by At

I need to kill specific worker thread in my application. I don't have any control over its execution, which means I cannot employ classic signal boolean variable approach. This thread is non-waiting. It doesn't sleep or wait on some monitor to be signalled - I can't interrupt it via Thread.interrupt, this throws IllegalThreadState exception. Any ideas?

1

There are 1 best solutions below

0
On BEST ANSWER

I don't think you can do this, at least not without killing the entire MIDlet.