CHAPTER 14

image

Concurrency

9781430247647_unFig14-01.jpg

From the beginning, Java supported concurrency in the form of low-level threads management, locks, synchronization, and APIs for concurrency. We covered them in the preceding chapter in our discussion of the Thread class, Runnable interface, and synchronized keyword.

Since 5.0, Java also supports high-level concurrency APIs in its java.util.concurrent package. In this chapter, we’ll focus on these APIs for concurrent programming. These high-level APIs exploit today’s multi-core hardware, in which a single processor has ...

Get Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805: A Comprehensive OCPJP 7 Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.