Suspend and Resume Java

The sleep(long inactivateTime) method takes a parameter of how much time the thread should be inactivated (sent to blocked state). The advantage of sleep() method is the thread comes into activation (getting into runnable state) when the inactivateTime is over automatically. When the inactivation time of a thread is not known at compile time and …

Suspend and Resume Java Read More »