pyufunc.cpu_count#

pyufunc.cpu_count(logical=True)#

Return the number of logical or physical CPUs in the system.

Parameters:
  • logical (bool) – If True, return the number of logical CPUs.

  • False (If)

  • True. (return the number of physical CPU cores. Defaults to)

Note

Example

>>> cpu_count()
Returns:

The number of logical or physical CPUs in the system.

Return type:

int