CyclicBarrierUtil { public void useCyclicBarrier(){ int cyclicSize=10; CyclicBarrier cyclicBarrier=new CyclicBarrier(cyclicSize); for (int i = 0; i < cyclicSize; i++) { startThread("子线程"+i,cyclicBarrier); } }  static void main(String[] args); void userCyclicBarrierThread(); void useCyclicBarrier();  }
@Test public void testUseCyclicBarrier() throws Exception { new CyclicBarrierUtil().useCyclicBarrier(); }