This is a simple java demo application.
Cyclic barrier is a concurrency concept in the java. Where multiple threads can be executed simultaneously and at some point when all thread finish their execution then one final Runnable thread will be executed to provide some business login in the thread.
Here lets take an example if we are working on inventory management project and we want to call inventory from different and multiple servers and sum the inventory of all the skus and insert into the database here "CyclicBarrier" best suite in this application.