add CountDownLatch and CyclicBarrier