Skip to content

Commit

Permalink
Merge pull request #2482 from cxyhuky/main
Browse files Browse the repository at this point in the history
Update java-thread-pool-best-practices.md
  • Loading branch information
Snailclimb authored Sep 13, 2024
2 parents e06114f + e0fad69 commit 54231b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/concurrent/java-thread-pool-best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ IO 密集型任务下,几乎全是线程等待时间,从理论上来说,

美团技术团队的思路是主要对线程池的核心参数实现自定义可配置。这三个核心参数是:

- **`corePoolSize` :** 核心线程数线程数定义了最小可以同时运行的线程数量
- **`corePoolSize` :** 核心线程数定义了最小可以同时运行的线程数量
- **`maximumPoolSize` :** 当队列中存放的任务达到队列容量的时候,当前可以同时运行的线程数量变为最大线程数。
- **`workQueue`:** 当新任务来的时候会先判断当前运行的线程数量是否达到核心线程数,如果达到的话,新任务就会被存放在队列中。

Expand Down

0 comments on commit 54231b2

Please sign in to comment.