<<< Common methods of the Thread class | Index | Example: Creating a thread >>> |
A procedure for creating a thread from the Thread class
Create a class that inherits the Thread class.
Override the run() method to perform the desired task.
Create the thread by instantiating an object from the class.
Call the start method of the thread object.
<<< Common methods of the Thread class | Index | Example: Creating a thread >>> |