Though both CyclicBarrier and CountDownLatch wait for number of threads on one or more events, main difference between them is that you can not re-use CountDownLatch once count reaches to zero, but you can reuse same CyclicBarrier even after barrier is broken.
Subscribe to:
Post Comments
(
Atom
)
No Comment to " Difference between CyclicBarrier and CountDownLatch in Java? "