Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Restore removed text
  • Loading branch information
vstinner committed Oct 1, 2023
commit f65bc28f5b6d5092230ac74e3730a24cac9c5f15
4 changes: 4 additions & 0 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5188,6 +5188,10 @@ Miscellaneous System Information
Return the number of logical CPUs in the system. Returns ``None`` if
undetermined.

This number is not equivalent to the number of logical CPUs the current
process can use. ``len(os.sched_getaffinity(0))`` gets the number of logical
CPUs the calling thread of the current process is restricted to

.. versionadded:: 3.4


Expand Down