permaculture playing cards
The moose likes Threads and Synchronization and the fly likes How kill thread after 30 second in java ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "How kill thread after 30 second in java ?" Watch "How kill thread after 30 second in java ?" New topic
Author

How kill thread after 30 second in java ?

Vipul Gulhane
Greenhorn

Joined: Mar 28, 2011
Posts: 20
hello friends,
I want to kill thread after timeout.
Can anybody tell me how to do that..
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

http://stackoverflow.com/questions/671049/how-do-you-kill-a-thread-in-java

http://docs.oracle.com/javase/1.4.2/docs/guide/misc/threadPrimitiveDeprecation.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How kill thread after 30 second in java ?