摘要: import java.util.concurrent.Exchanger;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class Thread1701_Exchan 阅读全文
posted @ 2017-12-05 02:03 为爱奋斗不息 阅读(242) 评论(0) 推荐(0) 编辑
摘要: import java.util.concurrent.CountDownLatch;import java.util.concurrent.CyclicBarrier;import java.util.concurrent.ExecutorService;import java.util.conc 阅读全文
posted @ 2017-12-05 02:02 为爱奋斗不息 阅读(447) 评论(0) 推荐(0) 编辑
摘要: import java.util.concurrent.CyclicBarrier;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class Thread1501_Cy 阅读全文
posted @ 2017-12-05 01:46 为爱奋斗不息 阅读(188) 评论(0) 推荐(0) 编辑
摘要: import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.concurrent.Semaphore;/** * Created by chengtao on 1 阅读全文
posted @ 2017-12-05 01:38 为爱奋斗不息 阅读(434) 评论(0) 推荐(0) 编辑
摘要: /** * Created by chengtao on 17/12/5. * Condition 类似 wait和notify,解决线程间的同步问题 */import java.util.concurrent.atomic.AtomicInteger;import java.util.concur 阅读全文
posted @ 2017-12-05 01:27 为爱奋斗不息 阅读(165) 评论(0) 推荐(0) 编辑
摘要: import java.util.Random;import java.util.concurrent.locks.ReadWriteLock;import java.util.concurrent.locks.ReentrantReadWriteLock;/** * Created by chen 阅读全文
posted @ 2017-12-05 00:54 为爱奋斗不息 阅读(185) 评论(0) 推荐(0) 编辑
摘要: import java.util.concurrent.locks.Lock;import java.util.concurrent.locks.ReentrantLock;/** * Created by chengtao on 17/12/5. * Lock 是替代 sycronized 的,相 阅读全文
posted @ 2017-12-05 00:12 为爱奋斗不息 阅读(202) 评论(0) 推荐(0) 编辑
摘要: import java.util.Random;import java.util.concurrent.*;/** * Created by chengtao on 17/12/4. * * 获取线程的结果 * <T> Future<T> submit(Callable<T> task); */pu 阅读全文
posted @ 2017-12-05 00:02 为爱奋斗不息 阅读(281) 评论(0) 推荐(0) 编辑