Chapter 7. Threads

Table of Contents

1. What is a Thread?
1.1. Definition
1.2. Multiple threads
1.3. Example
2. Thread Attributes
2.1. Thread class
2.2. Thread Body: The run() method
2.3. Thread States
2.4. Thread Priority
2.5. Daemon Threads
3. Thread Group
3.1. The ThreadGroup Class
4. Synchronizing Threads
4.1. Producer/Consumer Scenario
4.2. Monitors
4.3. The wait() and notify() Methods