Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public final class RuntimeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getAvailableProcessors()
Faster way to get the number of processors in the system.
|
public static int getAvailableProcessors()
The call the Runtime.availableProcessors is prohibitively slow (at least in Java 1.6 on Debian 6). The number of processors in a system is unlikely to change frequently. This will only call Runtime.availableProcessors once a second.
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.