Java Runtime availableProcessors by public class Test { public static void main(String[] args) { try { System.out.println(Runtime.getRuntime().availableProcessors()); } catch (Exception e) { e.printStackTrace(); } } }public class Test { public static void main(String[] args) { try { System.out.println(Runtime.getRuntime().availableProcessors()); } catch (Exception e) { e.printStackTrace(); } } } Please Share