CPU, number of cores
java.lang.Runtime
The number of CPU-cores which are available for JavaVM can be established as follows:
int num = Runtime.getRuntime().availableProcessors(); System.out.println("number of found CPU-cores: " + num);