O'Reilly logo

Java™ for Programmers: Deitel Developer Series, Second Edition by Harvey Deitel - Deitel & Associates, Inc., Paul Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 23. Multithreading

The most general definition of beauty...Multeity in Unity.

Samuel Taylor Coleridge

Do not block the way of inquiry.

Charles Sanders Peirce

A person with one watch knows what time it is; a person with two watches is never sure.

Proverb

Learn to labor and to wait.

Henry Wadsworth Longfellow

The world is moving so fast these days that the man who says it can’t be done is generally interrupted by someone doing it.

Elbert Hubbard

Objectives

In this chapter you’ll learn:

• What threads are and why they’re useful.

• How threads enable you to manage concurrent activities.

• The life cycle of a thread.

• To create and execute Runnables.

• Thread synchronization.

• What producer/consumer relationships are and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required