public class DeviceInfoUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEVICEINFO_UNKNOWN
The default return value of any method in this class when an error occurs or when processing
fails (Currently set to -1).
|
static int |
NUM_CORES_NOT_SET |
| Constructor and Description |
|---|
DeviceInfoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getNumberOfCPUCores()
Reads the number of CPU cores from the first available information from
/sys/devices/system/cpu/possible, /sys/devices/system/cpu/present, then /sys/devices/system/cpu/. |
static boolean |
hasMultipleCores() |
public static final int DEVICEINFO_UNKNOWN
public static final int NUM_CORES_NOT_SET
public static int getNumberOfCPUCores()
/sys/devices/system/cpu/possible, /sys/devices/system/cpu/present, then /sys/devices/system/cpu/.public static boolean hasMultipleCores()