• Post Reply Bookmark Topic Watch Topic
  • New Topic

threads doubt?  RSS feed

 
mantri srinivas rao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why and how the stop,suspend,resume methods are depricated. How to perform the same operations in jdk1.2
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently they are inherently unsafe methods which could leave the monitors in an inconsistent state and/or cause a deadlock.
If you have Java Doc API, see the Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. link under stop() method. It gives you a really nice( unlike me ) explanation.
Ajith
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!