Java Multithreading, Concurrency, and Parallelism — Part 20.2

KRISHNA KISHORE V
6 min readMar 27, 2022

The CountDownLatch

Fig 20.2.1 From the JDK source of 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…

--

--

KRISHNA KISHORE V

Full Stack Tech Lead | Software Consultant | Technical Content Writer