package ʬ;

import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/* renamed from: ʬ.K  reason: contains not printable characters */
/* compiled from: AndroidExecutors */
public final class C0599 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public static final int f3564 = Runtime.getRuntime().availableProcessors();

    /* renamed from: ඓ  reason: contains not printable characters */
    public static final int f3565;

    /* renamed from: ῲ  reason: contains not printable characters */
    public static final C0599 f3566 = new C0599();

    /* renamed from: 㸾  reason: contains not printable characters */
    public static final int f3567;

    /* renamed from: K  reason: contains not printable characters */
    public final Executor f3568 = new ExecutorC0600(null);

    /* renamed from: ʬ.K$ῲ  reason: contains not printable characters */
    /* compiled from: AndroidExecutors */
    public static class ExecutorC0600 implements Executor {
        public /* synthetic */ ExecutorC0600(C0601 k) {
        }

        public void execute(Runnable runnable) {
            new Handler(Looper.getMainLooper()).post(runnable);
        }
    }

    static {
        int i = f3564;
        f3567 = i + 1;
        f3565 = (i * 2) + 1;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static ExecutorService m2041() {
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(f3567, f3565, 1, TimeUnit.SECONDS, new LinkedBlockingQueue());
        int i = Build.VERSION.SDK_INT;
        threadPoolExecutor.allowCoreThreadTimeOut(true);
        return threadPoolExecutor;
    }
}
