线程池常用队列和拒绝策略
时间: 2023-09-24 22:13:21 浏览: 94
常用的线程池队列是workQueue,它对应的是阻塞队列。阻塞队列是一种在队列满或者空的情况下,能够阻塞线程的队列。通过使用阻塞队列,我们可以有效地控制任务的提交和执行,从而避免资源耗尽的风险。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [并发编程之线程池(阻塞队列,拒绝策略,线程池种类)](https://blog.csdn.net/illovesoftware/article/details/116399312)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [线程池任务队列和拒绝策略](https://blog.csdn.net/u010277958/article/details/108620617)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文