当前位置:网站首页>0722~ thread pool extension
0722~ thread pool extension
2022-07-23 13:21:00 【Life is so hard】
Seven parameters of thread ( a key ):
1. Number of core threads ;
2. Maximum number of threads ;
3. Survival time ;
4. Unit of time to live ;
5. Set thread queue ;
6. Set the thread factory ;
7. Set rejection policy ;
Four common thread pools :
Cache thread pool ( The fastest ):newCachedThreadPool;
Single thread pool ( The slowest ):newSingleThreadExecutor;
Fixed thread pool ( Xiaokuai ):newFixedThreadPool;
These three thread pools are generally not used in projects , All use custom thread pools ;


pluses : Submission priority and execution priority ;
Submit priority : The core --> queue --> Non core
Execution priority : The core --> Non core --> queue
边栏推荐
- Communicate 11 tips for poor performance 
- Beifu PLC and C transmit structure type variables through ads communication
- Li Kou 729. My schedule I
- Common CMD commands to quickly open programs
- Bit synchronization process of CAN controller
- Beifu PLC and C # regularly refresh IO through ads communication
- Offer II 094. Minimum palindrome segmentation
- 费曼学习法(Redis总结)
- Common scheduled cron expressions for scheduled tasks
- Beifu PLC and C transmit string type through ads communication
猜你喜欢

信號完整性(SI)電源完整性(PI)學習筆記(三十二)電源分配網路(四)

当输入网址后,到网页显示,期间发生了什么

第八天笔记

Numpy: quick start to basic operations

GOM引擎版本为什么玩家会自动掉线或闪退?

Bit synchronization process of CAN controller

北汇信息12岁啦|Happy Birthday

Are there any academic requirements for career transfer software testing? Is there really no way out below junior college?

Signal integrity (SI) power integrity (PI) learning notes (XXXI) power distribution network (III)

Beifu PLC and C # regularly refresh IO through ads communication
随机推荐
将集合使用流进行分页
沟通绩效业绩不佳的 11 个提示
C语言-大端存储和小端存储
Paging collections using streams
将指定秒转为时分秒格式
Opencv video operation
Signal integrity (SI) power integrity (PI) learning notes (32) power distribution network (4)
射击 第 1-3 课:图像精灵
当输入网址后,到网页显示,期间发生了什么
Beifu PLC and C transmit string array type variables through ads communication
Space shooting part 2-2: enemy spirit
倍福PLC--C#ADS通信以通知的方式读取变量
Successful joint commissioning of Vientiane Aoke and CoDeSys Technology
Evaluation of classification model
MySQL - composite query external connection
Pod topology constraints
网易白帽子黑客训练营笔记(2)
力扣 729. 我的日程安排表 I
聊聊研发团队中的“人”
太空射击 Part 2-3: 子弹与敌人碰撞处理