We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9691335 + bbab5c5 commit 98b7e4fCopy full SHA for 98b7e4f
docs/java/concurrent/java-thread-pool-best-practices.md
@@ -273,7 +273,7 @@ public class ThreadPoolExecutorConfig {
273
int maxPoolSize = (int) (processNum / (1 - 0.5));
274
threadPoolExecutor.setCorePoolSize(corePoolSize); // 核心池大小
275
threadPoolExecutor.setMaxPoolSize(maxPoolSize); // 最大线程数
276
- threadPoolExecutor.setQueueCapacity(maxPoolSize * 1000); // 队列程度
+ threadPoolExecutor.setQueueCapacity(maxPoolSize * 1000); // 队列长度
277
threadPoolExecutor.setThreadPriority(Thread.MAX_PRIORITY);
278
threadPoolExecutor.setDaemon(false);
279
threadPoolExecutor.setKeepAliveSeconds(300);// 线程空闲时间
0 commit comments