Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df887a8 commit 984a978Copy full SHA for 984a978
Doc/library/os.rst
@@ -5155,10 +5155,11 @@ Miscellaneous System Information
5155
5156
.. function:: cpu_count(*, usable=False)
5157
5158
- Return the number of CPUs in the system. Returns ``None`` if undetermined.
+ Return the number of logical CPUs in the system. Returns ``None`` if
5159
+ undetermined.
5160
- If *usable* is true, return the number of CPUs the current process can use.
5161
- If the :func:`sched_getaffinity` function is available, return
+ If *usable* is true, return the number of logical CPUs the current process
5162
+ can use. If the :func:`sched_getaffinity` function is available, return
5163
``len(os.sched_getaffinity(0))``, otherwise just return
5164
``cpu_count(usable=False)``.
5165
0 commit comments