CountDownLatch
A one-shot Java synchronization aid that blocks waiting threads until a counter reaches zero.
Technical Context
Workers call countDown when milestones complete while one or more coordinators await completion. A CountDownLatch cannot be reset, so repeated phase synchronization should use a CyclicBarrier, Phaser, or a different coordination model.
Related Concepts
- CyclicBarrier
- Semaphore
- ExecutorService
- coordination