(logical=True)
Return the number of logical CPUs in the system (same as
    os.cpu_count() in Python 3.4).

    If logical is False return the number of physical cores only
    (e.g. hyper thread CPUs are excluded).

    Return None if undetermined.

    The return value is cached after first call.
    If desired cache can be cleared like this:

    >>> psutil.cpu_count.cache_clear()
Return the number of logical CPUs in the system (same as
    os.cpu_count() in Python 3.4).
Return the number of logical CPUs in the system ( same as os . cpu_count () in Python 3 . 4 ) .
def cpu_count(logical=True):
    """Return the number of logical CPUs in the system (same as
    os.cpu_count() in Python 3.4).

    If logical is False return the number of physical cores only
    (e.g. hyper thread CPUs are excluded).

    Return None if undetermined.

    The return value is cached after first call.
    If desired cache can be cleared like this:

    >>> psutil.cpu_count.cache_clear()
    """
    if logical:
        return _psplatform.cpu_count_logical()
    else:
        return _psplatform.cpu_count_physical()
def cpu_count ( logical = True ) : if logical : return _psplatform . cpu_count_logical ( ) else : return _psplatform . cpu_count_physical ( )