摘要:
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 阅读全文