![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JUC
文章平均质量分 80
牵牛哥
这个作者很懒,什么都没留下…
展开
-
浅谈线程池
线程池状态 private static final int COUNT_BITS = Integer.SIZE - 3; private static final int CAPACITY = (1 << COUNT_BITS) - 1; private static final int RUNNING = -1 << COUNT_BITS; private static final int SHUTDOWN = 0 << COUNT_BITS;原创 2021-06-11 18:16:55 · 1134 阅读 · 3 评论 -
浅谈FutureTask
类继承关系图: 主要属性 private volatile int state;//执行状态,有如下几种状态 private static final int NEW = 0;//新建 private static final int COMPLETING = 1;//完成中 private static final int NORMAL = 2;//正常结束 private static final int EXCEPTIONAL = 3;//发生异常 pri原创 2021-06-09 18:03:47 · 215 阅读 · 0 评论