get Cpu Processor Count - Java Native OS

Java examples for Native OS:CPU

Description

get Cpu Processor Count

Demo Code


//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
}

Related Tutorials