
线程池
文章平均质量分 94
蛋焊工
搬砖小学生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
AQS(AbstractQueuedSynchronizer)
一、AQS数据结构 private transient volatile Node head; /** * Tail of the wait queue, lazily initialized. Modified only via * method enq to add new wait node. */ private transient volatile Node tail; /** * The synchronization state. */ private volatile i原创 2021-07-23 17:28:52 · 159 阅读 · 0 评论 -
ThreadPoolExecutor线程池以及线程复用原理
构造方法: public ThreadPoolExecutor(int corePoolSize,int maximumPoolSize,long keepAliveTime,TimeUnit unit, BlockingQueue<Runnable> workQueue); public ThreadPoolExecutor(int c...原创 2019-12-31 19:44:00 · 487 阅读 · 0 评论 -
Executors线程池
Executors线程池种类:1、newCachedThreadPool(缓存线程池) 2、newFixedThreadPool(定长线程池) 3、newScheduledThreadPool(调度线程池) ...原创 2018-03-22 11:18:17 · 464 阅读 · 0 评论