Java provides the synchronized keyword for synchronizing thread access to critical sections. Because it can be difficult to correctly write synchronized code that’s based on synchronized, high-level synchronizers (classes that facilitate common forms of synchronization) are included in the concurrency utilities. In this chapter, I introduce you to the countdown latch, cyclic barrier, exchanger, semaphore, and phaser synchronizers.


Barrier Action Critical Section Main Thread Synchronization Point Work Thread 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Supplementary material (4 kb)
ch06 (zip 5 kb)

Copyright information

© Jeff Friesen 2015

Authors and Affiliations

  • Jeff Friesen
    • 1
  1. 1.ManitobaCanada

Personalised recommendations