PyDocs

Nav

Concurrent Execution

cpu_count

multiprocessing

function (source) not Androidnot iOSnot WASI
  • cpu_count()
Returns the number of CPUs in the system
Changed in 3.13
  • 3.13: The return value can also be overridden using the -X cpu_count flag or PYTHON_CPU_COUNT as this is merely a wrapper around the os cpu count APIs.
0 Examples
No examples for multiprocessing/cpu_count.
See Also
No see-alsos for multiprocessing/cpu_count
0 Notes
No notes for cpu_count