One way to create threads is to write a separate class that subclasses the Thread class. |
The main line of execution is put in a method called run(), which overrides the method of the same name from the Thread class. |
Instances of this subclass are created like this:
|
Thread control:
|