GetCPUCore.java
public class GetCPUCore {
public static void main(String[] args) {
int cpu = Runtime.getRuntime().availableProcessors() * 2;
System.out.println("Available Processors * 2 is : " + cpu);
}
}
javac GetCPUCore.java
java -cp . GetCPUCore