How to kill all the threads in a program in one command.

Questions by kiran19999

Showing Answers 1 - 7 of 7 Answers

g4java

  • Sep 14th, 2007
 

No way to do that now :( ., its all deprecated. Just you've to wait untill threads finishes its execution or there should be a exit(int) / RunTimeException.

Masood

  • Sep 21st, 2007
 

We can terminate a thread, actully there is no method defined, but we can terminate a thread by just asignning its refrence to null;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions