public ThreadPoolExecutor (int corePoolSize, ThreadFactory factory) { this.corePoolSize = corePoolSize; maxPoolSize = corePoolSize; tf = factory; }