lenmom

博客园 首页 新随笔 联系 订阅 管理

2018年11月30日 #

摘要: CountDownLatch是在java1.5被引入的,跟它一起被引入的并发工具类还有CyclicBarrier、Semaphore、ConcurrentHashMap和BlockingQueue,它们都存在于java.util.concurrent包下。CountDownLatch这个类能够使一个 阅读全文
posted @ 2018-11-30 12:02 老董 阅读(488) 评论(0) 推荐(0)

摘要: using System; using System.Threading; /// /// Provides lock-free atomic read/write utility for a reference type, T, instance. The atomic classes found in this package /// were a... 阅读全文
posted @ 2018-11-30 10:44 老董 阅读(1336) 评论(0) 推荐(0)

摘要: using System; using System.Threading; /// /// Provides lock-free atomic read/write utility for a bool value. The atomic classes found in this package /// were are meant to repli... 阅读全文
posted @ 2018-11-30 10:42 老董 阅读(1462) 评论(0) 推荐(0)

摘要: using System; using System.Threading; /// /// Provides lock-free atomic read/write utility for a long value. The atomic classes found in this package /// were are meant to repli... 阅读全文
posted @ 2018-11-30 10:41 老董 阅读(1179) 评论(0) 推荐(0)

摘要: using System; using System.Threading; /// /// Provides lock-free atomic read/write utility for a int value. The atomic classes found in this package /// were are meant to replic... 阅读全文
posted @ 2018-11-30 10:39 老董 阅读(1717) 评论(0) 推荐(0)