Java Multithreading, Concurrency, and Parallelism — Part 20.2
6 min readMar 27, 2022
The CountDownLatch
In the previous part, we have introduced the synchronizers, their state dependency, and how AQS manages the state, FIFO queues, and the threads. Here we will see a simple synchronizer known as a CountDownLatch
.
As we have already mentioned in the previous part, every synchronizer has a state associated with it based…