java threads

Java Made Simple: What is Thread? Why threads required?

What is Thread? Why threads required? Summary: By the end of this tutorial "What is Thread? Why threads required?", gives meaning of thread and why a thread is required in computers? 1. What is a Process? A program under execution is known as process. A program (or a process) contains…

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…