CountDownLatch IntroductionCountDownLatch is a synchronization object that allows a thread to wait till certain events occur in other threads. We can make the current thread to wait until few dependent threads have completed their operation. CountDownLatch starts with a initial count. Thread that needs to wait, blocks until the count reaches to zero. Dependent threads on completing their task
Related Articles
This post first appeared on Programming Tutorials By SourceTricks, please read the originial post: here