URG & IMP: How does one stop the Thread.currentThread?
843829Feb 9 2006 — edited Feb 27 2006hi,
I want to stop the current thread.
Presently teh code used Thread.currentThread.stop()
However stop() has been deprecated
Thread.currentThread.interrupt() doesnot seem to help.
If I try Thread.currentThread.isAlive() post tehinterrupt, it doesnot work as desired and teh thread is still active...
Any pointers????
We have alreday tried using the boolean volatile varible to stop the thread as recommended by sun and since this is the currentThread, it cannot be assigned to null.
Thanks
Priya