线程池ThreadPoolExecutor
构造方法: ThreadPoolExecutor executor = new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory, handler); corePoolSize:核心线程数。不会被回收 maximumPoolSize:最大线程数。 k...
原创
2018-06-05 01:04:55 ·
106 阅读 ·
0 评论