def cpu_count_logical():
    try:
        return os.sysconf("SC_NPROCESSORS_ONLN")
    except ValueError:
        # mimic os.cpu_count() behavior
        return None
Return the number of logical CPUs in the system.
dataset/ETHPy150Open giampaolo/psutil/psutil/_pssunos.py/cpu_count_logical