The moose likes Threads and Synchronization and the fly likes Kill a thread Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Kill a thread " Watch "Kill a thread " New topic
Author

Kill a thread

ravi janap
Ranch Hand

Joined: Nov 04, 2000
Posts: 389
How do we kill a thread explicitly since stop method is deprecated?


SCJP, SCJD, SCWCD, SCBCD, SCEA
Mehul Sanghvi
Ranch Hand

Joined: Feb 04, 2002
Posts: 134
Hi...
Thread cannot be killed. But it can be asked to kill itself by interrupt() || interrupted() of Thread class.... browse thru documentation for more details on the method.
Regards,
Mehul K. Sanghvi.
 
 
subject: Kill a thread
 
Threads others viewed
Thank God For Drunk Chicks!
WA #1.....word association
killing a Thread ?
Soap thread
How to kill a thread within itself?
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture