threadPoolExecutor
时间: 2023-10-17 15:58:52 浏览: 98
ThreadPoolExecutor是Executors类的底层实现之一,其有多种创建方式。其中包括固定个数的线程池、缓存线程池、单一线程池和定时线程池。通过创建ThreadPoolExecutor对象可以指定核心线程数、最大线程数、线程的最大空闲时间、任务队列和拒绝策略等参数。这些线程池都可以用于执行任务,但具体的执行顺序取决于线程池的实现和任务的提交顺序。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ThreadPoolExecutor详解](https://blog.csdn.net/liuxiao723846/article/details/108026782)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [线程池ThreadPoolExecutor详解(整理详细)](https://blog.csdn.net/qq_44309610/article/details/113976210)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [多线程之ThreadPoolExecutor详解](https://blog.csdn.net/Java__EE/article/details/127393676)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文