O'Reilly logo

Core Java™, Volume I–Fundamentals, Eighth Edition by Gary Cornell, Cay S. Horstmann

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

WHAT ARE THREADS

INTERRUPTING THREADS

THREAD STATES

THREAD PROPERTIES

SYNCHRONIZATION

BLOCKING QUEUES

THREAD-SAFE COLLECTIONS

CALLABLES AND FUTURES

EXECUTORS

SYNCHRONIZERS

THREADS AND SWING

You are probably familiar with multitasking in your operating system: the ability to have more than one program working at what seems like the same time. For example, you can print while editing or downloading your email. Nowadays, you are likely to have a computer with more than one CPU, but the number of concurrently executing processes is not limited by the number of CPUs. The operating system assigns CPU time slices to each process, giving the impression of parallel activity.

Multithreaded programs extend ...

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