This class derives from https://github.com/wildfly/wildfly-common/blob/master/src/main/java/org/wildfly/common/cpu/ProcessorInfo.java licensed under the Apache Software License 2.0.
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the available processors on this system.Returns the number of processors available to this process. |
| private static int | |
| protected static int |
| BITS | back to summary |
|---|---|
| private static final byte[] BITS | |
| CPUS_ALLOWED | back to summary |
|---|---|
| private static final String CPUS_ALLOWED | |
| CpuCoreSensor | back to summary |
|---|---|
| public CpuCoreSensor() | |
| availableProcessors | back to summary |
|---|---|
| public static int availableProcessors() Returns the number of processors available to this process.
On most operating systems this method simply delegates to Since the CPU affinity of a process can be change at any time, this method does not cache the result. Note that on Linux, both SMT units (Hyper-Threading) and CPU cores are counted as a processor. This method is used to configure the default number of event loops. This settings can be overridden by the user.
| |
| determineProcessors | back to summary |
|---|---|
| private static int determineProcessors() | |
| readCPUMask | back to summary |
|---|---|
| protected static int readCPUMask(File file) throws IOException | |