2015年12月24日

阻塞队列的使用案例

摘要: import java.util.Random;import java.util.concurrent.LinkedTransferQueue;import java.util.concurrent.TransferQueue;public class TransferQueueLearn { ... 阅读全文

posted @ 2015-12-24 16:21 zhaojunyang 阅读(411) 评论(0) 推荐(0)

交换器的使用案例

摘要: package cn.dyg.exchange;import java.io.IOException;import java.util.ArrayList;import java.util.List;import java.util.concurrent.Exchanger;public class... 阅读全文

posted @ 2015-12-24 16:20 zhaojunyang 阅读(157) 评论(0) 推荐(0)

信号量的使用案例

摘要: import java.util.concurrent.Semaphore;public class SemaphoreLearn { public static void main(String[] args) { Semaphore semaphore... 阅读全文

posted @ 2015-12-24 16:19 zhaojunyang 阅读(396) 评论(0) 推荐(0)

导航