O'Reilly logo

Java™ for Programmers: Deitel by Harvey M. Deitel - Deitel & Associates, Inc., Paul J. 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

18. Multithreading

Objectives

In this chapter you’ll learn:

• What threads are and why they are useful.

• How threads enable you to manage concurrent activities.

• The life cycle of a thread.

• Thread priorities and scheduling.

• To create and execute Runnables.

• Thread synchronization.

• What producer/consumer relationships are and how they are implemented with multithreading.

• To enable multiple threads to update Swing GUI components in a thread-safe manner.

• About interfaces Callable and Future, which you can use with threading to execute tasks that return results.

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 ...

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