Concurrent Programming in Java

Concurrent Programming in Java

A Thread class implements the notion of a logical processor in Java. The class manages a single sequential thread of control. Threads may be created and deleted dynamically.

The Thread class executes instructions from its method run(). The actual code executed depends on the implementation provided for run() in a derived class.

class MyThread extends Thread {

public void run() {

//......

}

}

Previous slide Next slide Back to the first slide View Graphic Version