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