• Post Reply Bookmark Topic Watch Topic
  • New Topic

Kill a thread  RSS feed

 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do we kill a thread explicitly since stop method is deprecated?
 
Mehul Sanghvi
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!