爱睡觉的程序员

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  5 随笔 :: 0 文章 :: 0 评论 :: 0 Trackbacks

02 2015 档案

     摘要: CyclicBarrier,让多线程齐步走。  阅读全文
posted @ 2015-02-27 11:50 polang 阅读(219) | 评论 (0)  编辑

     摘要: Semaphore 是应用于控制一组线程的访问资源。  阅读全文
posted @ 2015-02-26 18:10 polang 阅读(425) | 评论 (0)  编辑

     摘要: CountDownLatch,应用于一个任务需要等待多个任务执行完毕后才执行的场景。  阅读全文
posted @ 2015-02-26 15:09 polang 阅读(113) | 评论 (0)  编辑