2017年6月5日

摘要: CyclicBarrier 一个同步辅助类,它允许一组线程互相等待,直到到达某个公共屏障点 (common barrier point) 然后一再执行 运行结果如下 在这里 需要说下和CountDownLatch的区别 CountDownLatch 阻塞的是 主线程 CyclicBarrier 阻塞 阅读全文
posted @ 2017-06-05 18:03 一只小蜗牛12138 阅读(160) 评论(0) 推荐(0) 编辑

导航