摘要:
概述 Condition接口位于java.util.concurrent.locks包下,实现类有 AbstractQueuedLongSynchronizer.ConditionObject和 AbstractQueuedSynchronizer.ConditionObject。Condition 阅读全文
摘要:
static void test3() throws InterruptedException{ Lock lock=new ReentrantLock(); Condition conditionLock1=lock.newCondition(); Condition conditionLock2 阅读全文
摘要:
Queue workQueue = corePoolSize <= 0 ? new SynchronousQueue() : new LinkedBlockingQueue(1024);ThreadFactory threadFactory = Executors.defaultThreadFact 阅读全文