本文摘自:http://outofmemory.cn/java/java.util.concurrent/lock-reentrantlock-condition java的java.util.concurrent.locks包内有Condition接口,该接口的官方定义如下: Condition factors out the Object monitor methods (wait, notify and notifyAll) into distinct objects to give th…
/** * Creates a new {@code ThreadPoolExecutor} with the given initial * parameters. * * @param corePoolSize the number of threads to keep in the pool, even * if they are idle, unless {@code allowCoreThreadTimeOut} is set * @param maximumPoolSize the…