摘要: 当前任务要等待其他线程的任务执行完之后在执行。 CountDownLatch countDownLatch = new CountDownLatch(N); countDownLatch.countDown(); count = N - 1 countDownLatch.await();(阻塞) 当 阅读全文
posted @ 2018-12-20 10:50 saveworld_niub 阅读(166) 评论(0) 推荐(0) 编辑