Java - Cyclic Barrier
Cyclic Barrier:
When multiple threads carry a different sub tasks and the output of these sub tasks need to be combined in the form of final output.
public static CyclicBarrier newBarrier = new CyclicBarrier(3);
Tester newBarrier.await();
Comments
Post a Comment