多线程高并发编程(5) -- CountDownLatch、CyclicBarrier源码分析

一.CountDownLatch   1.概念 public CountDownLatch(int count) {//初始化 if (count < 0) throw new IllegalArgumentException("count < 0"); this.sync = new Sync(count); }   CountDownLatch是
相关文章
相关标签/搜索