PPT Slide
Java Threads (taken from chapter 15 of The Java Tutorial).
- JavaSOS uses Java threads, so it’s worth covering their specifics.
- Java thread definition: a single sequential flow of control within a program.
- The Thread class is provided in the java.lang package.
- You can either extend the Thread class or in the case of a class already being extended (like the Applet class) you can say the class implements Runnable.
- Either way you can then override a number of Thread class methods that affect thread behavior.