摘要: import java.util.Random;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.concurrent.Semaphore;/** * ... 阅读全文
posted @ 2016-01-08 15:28 哎呦喂,我的小祖宗╰つ 阅读(201) 评论(0) 推荐(0) 编辑
摘要: import java.util.concurrent.locks.Condition;import java.util.concurrent.locks.Lock;import java.util.concurrent.locks.ReentrantLock;/** * 利用多个Condition... 阅读全文
posted @ 2016-01-08 11:18 哎呦喂,我的小祖宗╰つ 阅读(762) 评论(0) 推荐(0) 编辑
摘要: import java.util.concurrent.locks.Condition;import java.util.concurrent.locks.Lock;import java.util.concurrent.locks.ReentrantLock;/** * Lock下提供了一个con... 阅读全文
posted @ 2016-01-08 11:17 哎呦喂,我的小祖宗╰つ 阅读(343) 评论(0) 推荐(0) 编辑