android 线程池源码解析

先从俩个概念提及 线程池核心的接口实际上是Executor,它有一个execute方法,这个方法的实如今ThreadPoolExecutor中。在ThreadPoolExecutor源码中咱们经常能看到这么俩个变量:ctl,worker。java ctl ctl是什么呢?ctl在源码里的解释是:The main pool control state, ctl, is an atomic integ
相关文章
相关标签/搜索