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
Source package:
psutil.Source repository: giampaolo/psutil
Source document: https://psutil.readthedocs.io/en/latest/
Source license: BSD 3-Clause License.
Example
>>> cpu_count()
- Returns:
The number of logical or physical CPUs in the system.
- Return type: