get Available CPU Processors - Android Android OS

Android examples for Android OS:Process

Description

get Available CPU Processors

Demo Code


//package com.java2s;

public class Main {

    public static int getAvailableProcessors() {
        return Runtime.getRuntime().availableProcessors();
    }/*from  www. j a v a 2 s. co m*/
}

Related Tutorials