PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Concurrent Execution
_thread
concurrent.futures
concurrent.interpreters
contextvars
multiprocessing
multiprocessing.connection
multiprocessing.dummy
multiprocessing.managers
multiprocessing.pool
multiprocessing.shared_memory
multiprocessing.sharedctypes
queue
sched
subprocess
threading
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Concurrent Execution
_thread
concurrent
futures
interpreters
contextvars
multiprocessing
connection
dummy
managers
pool
shared_memory
sharedctypes
queue
sched
subprocess
threading
All modules
cpu_count
multiprocessing
function
(
source
)
not Android
not iOS
not WASI
cpu_count()
Returns the number of CPUs in the system
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
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.
Log in
to add an example
See Also
No see-alsos for
multiprocessing/cpu_count
Log in
to add a see-also
0 Notes
No notes for
cpu_count
Log in
to add a note