mirror of
https://gitee.com/wangkang/udf.git
synced 2026-10-25 10:23:40 +00:00
设置默认线程池线程的大小默认为CPU数量+1
This commit is contained in:
@@ -62,9 +62,9 @@ public class ApplicationConfig {
|
||||
public static class ThreadPoolProperties {
|
||||
|
||||
/**
|
||||
* 描述 : 默认线程池大小(默认:1)
|
||||
* 描述 : 默认线程池大小(默认:CPU数量+1)
|
||||
*/
|
||||
private Integer poolSize = 1;
|
||||
private Integer poolSize = Runtime.getRuntime().availableProcessors() + 1;
|
||||
|
||||
/**
|
||||
* 描述 : 线程优先级
|
||||
|
||||
Reference in New Issue
Block a user