src/main/java/de/blau/android/util/Util.java
/**
     * estimate number of 'usable' processors
     *
     * @return number of processors
     */
estimate number of 'usable' processors
@return number of processors
estimate number of ' usable ' processors @return number of processors
public static int usableProcessors() {
        int val = Runtime.getRuntime().availableProcessors();
        if (val > 4) {
            val /= 2;
        }
        return val;
    }
public static int usableProcessors ( ) { int val = Runtime . getRuntime ( ) . availableProcessors ( ) ; if ( val > 4 ) { val /= 2 ; } return val ; }
estimate number of 'usable' processors
 @return number of processors
estimate number of ' usable ' processors @return number of processors
// Typically has big+little architecture. Try to avoid the 'little' cores // as they would need a smaller chunk to finish work in similar time. // E.g. on Samsung A50 it's faster to use only the 4 fast cores instead of using // all 8 cores and wait for 4 slower cores to finish their equal sized chunk.