OBJECTIVES
After studying this chapter, you will
Understand the concept of a thread.
Know how to design and write multithreaded programs.
Be able to use the THRead class and the Runnable interface.
Understand the life cycle of a thread.
Know how to synchronize threads.
OUTLINE
14.1
Introduction
14.2
What Is a Thread?
14.3
From the Java Library: java.lang.Thread
14.4
Thread States and Life Cycle
14.5
Using Threads to Improve Interface Responsiveness
14.6
CASE STUDY: Cooperating Threads
14.7
CASE STUDY: The Game of Pong
Chapter Summary
Solutions to Self-Study Exercises
Exercises