Wednesday, October 12, 2005 06:24 AM
u can kill the partictular thread by setting external
public static flag=true;
class Test extends Thread
public void run()
//do ur work here
if u want to stop the above thread ,
set flag variable as false.
The another way to kill a thread is
just register ur thread with ThreadGroup.
and use the method destroy() of ThreadGroup.
and this way is also used kill similar threads by
creating them as group or register with group.