摘要:
简介 CountDownLatch 犹如倒计时计数器,countDown()计数器建议1,当等于0时所有等待者任务开始进行,可用于实现 一对多的指令通知场景,例如运动员赛跑的场景 1 public class MyThreadCountDownLatch { 2 3 public static vo 阅读全文
posted @ 2017-07-03 16:59 tony-yi 阅读(139) 评论(0) 推荐(0)
posted @ 2017-07-03 16:59 tony-yi 阅读(139) 评论(0) 推荐(0)
posted @ 2017-07-03 16:52 tony-yi 阅读(115) 评论(0) 推荐(0)
posted @ 2017-07-03 16:30 tony-yi 阅读(151) 评论(0) 推荐(0)