get Cpu Count - Android android.os

Android examples for android.os:CPU

Description

get Cpu Count

Demo Code

public class Main{

    public static int getCpuCount() {
        return Runtime.getRuntime().availableProcessors();
    }/*from ww  w  . j a  v a 2 s  .  com*/

}

Related Tutorials