搜索结果
查询Tags标签: workerCount,共有 3条记录-
api-java.util.concurrent.ThreadPoolExecutor
I、UML II、依赖 III、运行流程IV、生命周期 run statedescRUNNING 能接收新任务,且能处理队列中任务SHUTDOWN 不能接收新任务,但能继续处理队列中任务STOP 新任务和队列中任务都不能处理,会中断正在处理任务的线程TIDYING 所有任务已终止TERMINATED terminated()之后…
2022/1/25 17:04:39 人评论 次浏览 -
线程池源码解析(一)
/*** The main pool control state, ctl, is an atomic integer packing* two conceptual fields* workerCount, indicating the effective number of threads* runState, indicating whether running, shutting down etc** In order to pack them into one int, w…
2021/11/15 22:39:46 人评论 次浏览 -
线程池源码解析(一)
/*** The main pool control state, ctl, is an atomic integer packing* two conceptual fields* workerCount, indicating the effective number of threads* runState, indicating whether running, shutting down etc** In order to pack them into one int, w…
2021/11/15 22:39:46 人评论 次浏览