添加可用处理器数量常量.

pull/28/head
chen.ma 3 years ago
parent 135b0d7ad9
commit 5b5eabab7e

@ -60,4 +60,6 @@ public class Constants {
public static final int MAP_INITIAL_CAPACITY = 16; public static final int MAP_INITIAL_CAPACITY = 16;
public static final int AVAILABLE_PROCESSORS = Runtime.getRuntime().availableProcessors();
} }

Loading…
Cancel
Save