O'Reilly logo

Java: A Beginner's Tutorial by Budi Kurniawan

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 24

Java Threads

One of the most appealing features in Java is its support for easy thread programming. Prior to 1995, the year Java was released, threads were the domain of programming experts only. With Java, even beginners can write multi-threaded applications.

This chapter explains what threads are and why they are important. It also talks about related topics such as synchronization and the visibility problem. The Concurrency Utilities, discussed in Chapter 25, provides a better and easier way of working with threads.

Introduction to Java Threads

A program can allocate processor time to units in its body. Each unit is then given a portion of the processor time. Even if your computer only has a single-core processor, it ...

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