Java examples for Native OS:CPU
get Cpu Processor Count
//package com.java2s; public class Main { public static final int getCpuProcessorCount() { return Runtime.getRuntime().availableProcessors(); }// ww w . j av a 2 s . c o m }