Java Runtime availableProcessors

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