3 ms·
When would you use a CyclicBarrier in preference to (for example) splitting tasks into before-barrier and after-barrier FutureTasks and submitting to a ThreadPo
by michaelt 14y ago
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?
- kodablah 14y agoMaybe because you want to maintain your local state or are in the middle of something that cannot simply be "continued" in another thread.