June 2018
Intermediate to advanced
408 pages
11h 23m
English
Java provides a synchronized keyword to write synchronized code, but it is difficult to correctly write synchronized code through the synchronized keyword alone. The java.util.concurrent package provides various utility classes, such as CountDownLatch, CyclicBarrier, Exchanger, Semaphore, and Phaser, which are known as synchronizers. Synchronizers are concurrency utilities that provide thread synchronization without using the wait() and notify() methods. Let's have a look at the following classes:
Read now
Unlock full access