MCPcopy Create free account
hub / github.com/ipython/ipython / _num_cpus_windows

Function _num_cpus_windows

IPython/utils/sysinfo.py:132–134  ·  view source on GitHub ↗

Return the number of active CPUs on a Windows system.

()

Source from the content-addressed store, hash-verified

130
131
132def _num_cpus_windows():
133 """Return the number of active CPUs on a Windows system."""
134 return os.environ.get("NUMBER_OF_PROCESSORS")
135
136
137def num_cpus():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected