Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
CyclicBarrier Example in Java - Use case (javarevisited.blogspot.sg)
13 points by javinpaul on Aug 8, 2012 | hide | past | favorite | 3 comments


I really find it difficult to read articles where every other word is a link, even if they try to differentiate between "actual links" and "spam links" with the dotted underline.


When would you use a CyclicBarrier in preference to (for example) splitting tasks into before-barrier and after-barrier FutureTasks and submitting to a ThreadPoolExecutor?


Maybe because you want to maintain your local state or are in the middle of something that cannot simply be "continued" in another thread.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: