File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Threads and Synchronization
Alternative to suspend()-resume()
Joined: Aug 13, 2001
Dec 28, 2001 02:56:00
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 .
Kaustubh. Mumbai, India.
Peter den Haan
Joined: Apr 20, 2000
Dec 28, 2001 05:31:00
interrupt(), perhaps in combination with some polling? If not, can you be a bit more explicit in what you want to achieve?
I agree. Here's the link:
subject: Alternative to suspend()-resume()
suspend() & resume() - problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013