搜索结果
查询Tags标签: TIDYING,共有 3条记录-
线程池源码解析(一)
/*** 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 人评论 次浏览 -
线程及线程池状态
java中定义了线程状态有6种,源码在Thread类中定义了枚举类 State:•NEWA thread that has not yet started is in this state. •RUNNABLEA thread executing in the Java virtual machine is in this state. •BLOCKEDA thread that is blocked waiting for a monitor …
2021/5/13 18:25:09 人评论 次浏览