Skip to content

Commit 98b7e4f

Browse files
authored
Merge pull request #2689 from blueair5/fix-main
修改线程池最佳实践示例代码中的错别字
2 parents 9691335 + bbab5c5 commit 98b7e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/concurrent/java-thread-pool-best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public class ThreadPoolExecutorConfig {
273273
int maxPoolSize = (int) (processNum / (1 - 0.5));
274274
threadPoolExecutor.setCorePoolSize(corePoolSize); // 核心池大小
275275
threadPoolExecutor.setMaxPoolSize(maxPoolSize); // 最大线程数
276-
threadPoolExecutor.setQueueCapacity(maxPoolSize * 1000); // 队列程度
276+
threadPoolExecutor.setQueueCapacity(maxPoolSize * 1000); // 队列长度
277277
threadPoolExecutor.setThreadPriority(Thread.MAX_PRIORITY);
278278
threadPoolExecutor.setDaemon(false);
279279
threadPoolExecutor.setKeepAliveSeconds(300);// 线程空闲时间

0 commit comments

Comments
 (0)