CodesJava

Easy learning with example program codes

Java Runtime availableProcessors


public class Test {
  public static void main(String[] args) {
	  try {
		  System.out.println(Runtime.getRuntime().availableProcessors()); 
	} catch (Exception e) {
		e.printStackTrace();
	}
  }
}
Please follow and like us:
Posted in Java   

Core Java Tutorial



Copyright © 2019 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki