def cpu_count():
    """Returns the number of processors on this machine."""
    try:
        return multiprocessing.cpu_count()
    except NotImplementedError:
        pass
    try:
        return os.sysconf("SC_NPROCESSORS_CONF")
    except __HOLE__:
        pass
    gen_log.error("Could not detect number of processors; assuming 1")
    return 1
dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/process.py/cpu_count