How is CountDownLatch used in Java Multithreading?
Can someone help me to understand what Java CountDownLatch is and when to use it? I don’t have a very clear idea of how this program works. As I understand all three threads start at once and each Thread will call CountDownLatch after 3000ms. So count down will decrement one by one. After latch becomes … Read more