PyDocs

Nav

Generic Operating System Services

cpu_count

os

function · Added in 3.4
  • cpu_count()
Return the number of logical CPUs in the system.

Return None if indeterminable.
Changed in 3.13
  • 3.13: If -X cpu_count is given or PYTHON_CPU_COUNT is set, cpu_count() returns the override value n.
0 Examples
No examples for os/cpu_count.
See Also
No see-alsos for os/cpu_count
0 Notes
No notes for cpu_count