• Post Reply Bookmark Topic Watch Topic
  • New Topic

Alternative to suspend()-resume()  RSS feed

 
Kaustubh Patil
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

As u all may know that the suspend - resume methods are depricated in the java2 and above releases.This may cause a deadlock
So i would like to know about the alternatives to them.
the wait notify approach doesn't work .
Thankx,,
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
interrupt(), perhaps in combination with some polling? If not, can you be a bit more explicit in what you want to achieve?
- Peter
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!