KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I was reading through the java.util.concurrent API , and found that CountDownLatch : A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes. CyclicBarrier : A synchronization aid that allows a set of threads to all wait for each other to reach a common barrier point. To me both seems equal, but I am sure there is much more to it. For example, in CoundownLatch, the countdown value could not be reset, that can happen in the case of CyclicBarrier . Is there any other difference between the two? What are the use cases where someone would want to reset the value of countdown?
Tags (comma-separated)
Save Edits
Cancel