A CyclicBarrier is a synchronizer that allows a set of threads to wait for each other to reach a common execution point, also called a barrier.
CyclicBarriers are used in programs in which we have a fixed number of threads that must wait for each other to reach a common point before continuing execution.
A CyclicBarrier is a synchronization helping class from java.util.concurrent package that allows a set of threads to all wait for each other to reach at common barrier point.
CyclicBarrier is useful when a program involves a fixed sized party of threads that must occasionally wait for each other. The barrier is called cyclic because it can be re-used after the waiting threads are released that’s where it differs from CountDownLatch