maximumPoolSize
时间: 2023-10-11 19:12:06 浏览: 76
maximumPoolSize是线程池的一个参数,用于指定线程池的最大线程数量。然而,在基于链表的无界阻塞队列中,这个参数实际上并不起作用。因为该队列的近似无界性,当线程池中的线程数量达到corePoolSize后,新的任务会一直存入队列中,而不会创建新的线程,直到达到Integer.MAX的大小(非常大的数值)。因此,在使用这个工作队列时,maximumPoolSize参数实际上并不会影响线程池的行为。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [线程池七大参数](https://blog.csdn.net/qq_57442639/article/details/124734971)[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_1"}}] [.reference_item style="max-width: 50%"]
- *2* [java线程池概念.txt](https://download.csdn.net/download/u010987379/11565563)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文