Get available processors Count. - Android Android OS

Android examples for Android OS:Process

Description

Get available processors Count.

Demo Code


//package com.java2s;

public class Main {
    /**//  w ww .j  a v  a2s  .  co m
     * Get available processors.
     */
    public static int getProcessorsCount() {
        return Runtime.getRuntime().availableProcessors();
    }
}

Related Tutorials