ID EN
OS

sched_getscheduler

Python 3.11

Return the scheduling policy for the process with PID pid. A pid of 0 means the calling process. The result is one of the scheduling policy constants above.

Syntax

PYTHON
os.sched_getscheduler(pid, /)