Java 基础篇
让程序性能优异的并发利器
线程池
创建参数对工作机制对影响
线程池构造函数:
public ThreadPoolExecutor(int corePoolSize,int maximumPoolSize,long keepAliveTime,TimeUnit unit,BlockingQueue<Runnable> workQueue,ThreadFactory threadFactory,RejectedExecutionHandler handler)
参数含义:
corePoolSiz
原创
2020-06-11 14:28:25 ·
231 阅读 ·
0 评论