Can we wake up a sleeping thread before its sleeping time elapses?
posted 9 years ago
Hi, welcome to the ranch!
The Thread sleep() doc gives a good hint ... it can throw an interrupted exception if another thread interrupts it. That's what you need. Let's say MyRunnable sleeps at some point and we want to wake it up:
See if you can make something like that run. Let us know how it goes!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi