Wednesday, 25 January 2017
CyclicBarrier vs. CountDownLatch
SIMILARITY
Both waits for number of threads on one or more events
DIFFERENCE
We
cannot re-use CountDownLatch
once count reaches to zero
You can reuse same
CyclicBarrier
even after barrier is broken
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.