previous |
start |
next
Steps to Running a Threads
- Implement a class that extends the Thread class
- Place the code for your task into the run method of
your class
- Create an object of your subclass
- Call the start method of your class to start the
thread
- When a Thread object is started, the code in its
run method is executed in a new thread
previous |
start |
next