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