摘要:
import java.util.concurrent.Exchanger;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class Thread1701_Exchan 阅读全文
摘要:
import java.util.concurrent.CountDownLatch;import java.util.concurrent.CyclicBarrier;import java.util.concurrent.ExecutorService;import java.util.conc 阅读全文
摘要:
import java.util.concurrent.CyclicBarrier;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class Thread1501_Cy 阅读全文
摘要:
import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.concurrent.Semaphore;/** * Created by chengtao on 1 阅读全文
摘要:
/** * Created by chengtao on 17/12/5. * Condition 类似 wait和notify,解决线程间的同步问题 */import java.util.concurrent.atomic.AtomicInteger;import java.util.concur 阅读全文
摘要:
import java.util.Random;import java.util.concurrent.locks.ReadWriteLock;import java.util.concurrent.locks.ReentrantReadWriteLock;/** * Created by chen 阅读全文
摘要:
import java.util.concurrent.locks.Lock;import java.util.concurrent.locks.ReentrantLock;/** * Created by chengtao on 17/12/5. * Lock 是替代 sycronized 的,相 阅读全文
摘要:
import java.util.Random;import java.util.concurrent.*;/** * Created by chengtao on 17/12/4. * * 获取线程的结果 * <T> Future<T> submit(Callable<T> task); */pu 阅读全文