17. Threads and Concurrent Programming

 

 

 

 

 

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

Introduction

What Is a Thread?

From the Java Library: java.lang.Thread

Thread States and Life Cycle

Using Threads to Improve Interface Responsiveness

Case Study: Cooperating Threads

Case Study: The Game of Pong

Chapter Summary

Solutions to Self-Study Exercises Exercises

 

 

 

 

 

 

 

 

643