Define MultiTasking in Java »



MultiTasking :
There are two types of executing the statements in MultiTasking.
Executing several task at a time by the microprocessor is called MultiTasking.
In MultiTasking the processor time is utilized in an optimum way
The 2 type of MultiTasking are as follows.
(i) Process Based MultiTasking :
In this several programs are executed by the Microprocessor using RoundRobin Method.
(ii) [...]

Defining Life Cycle of Thread »



When you are programming with threads, understanding the life cycle of thread is very valuable. While a thread is alive, it is in one of several states. By invoking start() method, it doesn’t mean that the thread has access to CPU and start executing straight away. Several factors determine how it will proceed.
Different states of [...]

Life Cycle of Thread »



In particular,when we look at the life cycle of a thread: how to create and start a thread, some of the special things it can do while it’s running, and how to stop it.
The following shows the states that a Java thread can be in during its life. It also illustrates which method calls [...]

Thread example for Runnable Interface »



Runnable Interface : The easiest way to create a thread is to create a class that implements the Runnable interface. Runnable abstracts a unit of executable code. You can construct a thread on any object that implements Runnable. To implement Runnable, a class need only implements a single method called run(), which is declared like [...]