Home
/
Python 3.11
/
OS
/
sched_getaffinity
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
OS
sched_getaffinity
Python 3.11
Return the set of CPUs the process with PID pid is restricted to.
Syntax
PYTHON
Copy
os.sched_getaffinity(pid, /)