1.

If A Countdownlatch Is Initialized With Some Count Let's Say 3 (new Countdownlatch(3)). Do We Need To Have 3 Threads For Countdown In That Case?

Answer»

No. Same NUMBER of threads are not REQUIRED. A CountDownLatch initialized to N can be used to make ONE thread WAIT until N threads have completed some action, or some action has been completed N times.

No. Same number of threads are not required. A CountDownLatch initialized to N can be used to make one thread wait until N threads have completed some action, or some action has been completed N times.



Discussion

No Comment Found