java Questions
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   rams_lingam
Posted On:   Monday, January 9, 2006 05:43 AM


how to kill thread in java

Re: java Questions

Posted By:   Anonymous  
Posted On:   Wednesday, February 8, 2006 03:32 AM

How to kill thread in java

Re: java Questions

Posted By:   Anonymous  
Posted On:   Tuesday, January 10, 2006 09:46 AM

call stop() method..

Re: java Questions

Posted By:   Raghavan_M  
Posted On:   Monday, January 9, 2006 06:53 AM

Hey rams lingam,

Infact all the threads are supposed to meet their own 'end' state soon after their jobs are done! Its the natural case.



There may be situations when you want to kill the threads manually. You can kill by calling stop()method. But remember this method is deprecated since JDK 1.4 as it is giving some unwanted effects!



Not only this stop(), also the suspend() method is deprecared. I would recommend you to please go through the API documentation of JDK1.4 (which is being used pretty much nowadays!) for a thorough implementation details!





Good luck,

Raghavan alias Saravanan M.
About | Sitemap | Contact