MCPcopy Create free account
hub / github.com/KmBase/ScienceReading / cpu_affinity

Method cpu_affinity

embedded/site-packages/psutil/__init__.py:855–872  ·  view source on GitHub ↗

Get or set process CPU affinity. If specified, *cpus* must be a list of CPUs for which you want to set the affinity (e.g. [0, 1]). If an empty list is passed, all egible CPUs are assumed (and set). (Windows, Linux and BSD only).

(self, cpus=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

_get_eligible_cpuFunction · 0.95
test_cpu_affinityMethod · 0.95

Calls 5

_raise_if_pid_reusedMethod · 0.95
_get_eligible_cpusMethod · 0.80
cpu_timesFunction · 0.70
cpu_affinity_getMethod · 0.45
cpu_affinity_setMethod · 0.45

Tested by 2

test_cpu_affinityMethod · 0.76