摘要: CountDownLatch(减法计数器): 1 /* 2 * latch.countDown();数量减1,如果当前计数等于零,那么没有任何反应。释放所有等待的线程。 3 * latch.await();计数到零执行下一步 4 */ 5 @Test 6 public void testCountD 阅读全文
posted @ 2020-08-22 13:22 cgfamily 阅读(95) 评论(0) 推荐(0)