Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stopping Thread

 
Richard Teston
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i have an object which extends Thread how could i stop and resume thread execution since stop() resume() is not recommended to use?
 
Mahesh swami
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use wait and notify methods instead of stop and resume
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic