mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-25 02:27:10 +08:00
Update java-thread-pool-summary.md
This commit is contained in:
parent
7f6139859f
commit
74a376acd3
@ -392,7 +392,7 @@ pool-1-thread-2 End. Time = Sun Apr 12 11:14:47 CST 2020
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
//获取线程池中线程的数量
|
//获取线程池中工作的线程的数量
|
||||||
int wc = workerCountOf(c);
|
int wc = workerCountOf(c);
|
||||||
// core参数为true的话表明队列也满了,线程池大小变为 maximumPoolSize
|
// core参数为true的话表明队列也满了,线程池大小变为 maximumPoolSize
|
||||||
if (wc >= CAPACITY ||
|
if (wc >= CAPACITY ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user