摘要: CountDownLatch: CountDownLatch允许一个或多个线程等待其他线程完成操作; CountDownLatch需要指定一个整数值,此值是线程将要等待的操作数,当减为0时,才会唤醒所有await的线程,一个countdownlatch只能用一次 public class Count 阅读全文
posted @ 2020-06-11 22:40 zpp13 阅读(311) 评论(0) 推荐(0) 编辑