GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 401 of 502    Print  
How to kill all the threads in a program in one command.

  
Total Answers and Comments: 3 Last Update: February 14, 2008     Asked by: kiran19999 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 14, 2007 06:46:41   #1  
g4java Member Since: July 2007   Contribution: 28    

RE: How to kill all the threads in a program in one co...
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.
 
Is this answer useful? Yes | No
September 21, 2007 18:14:49   #2  
Masood        

RE: How to kill all the threads in a program in one co...
We can terminate a thread actully there is no method defined but we can terminate a thread by just asignning its refrence to null;
 
Is this answer useful? Yes | No
February 14, 2008 02:28:23   #3  
sampra Member Since: February 2008   Contribution: 278    

RE: How to kill all the threads in a program in one command.
after exceuting thread is automatically killed
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape