CyclicBarrier

We'll cover the following...

Explanation

CyclicBarrier is a synchronization mechanism introduced in JDK 5 in the java.util.concurrent package. It allows multiple threads to wait for each other at a common point (barrier) before continuing execution. The threads wait for each other by calling the await() method on the CyclicBarrier. All threads that wait for each other to reach barrier are called parties. *You can read-up on designing and implementing a barrier for an interview question here. ...