public class SystemUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_THREAD_POOL_SIZE
recommend default thread pool size according to system available processors,
getDefaultThreadPoolSize() |
| Constructor and Description |
|---|
SystemUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDefaultThreadPoolSize()
get recommend default thread pool size
|
static int |
getDefaultThreadPoolSize(int max)
get recommend default thread pool size
|
public static final int DEFAULT_THREAD_POOL_SIZE
getDefaultThreadPoolSize()public static int getDefaultThreadPoolSize()
#getDefaultThreadPoolSize(int)} max is 8public static int getDefaultThreadPoolSize(int max)
max -