ID EN
OS

sched_setscheduler

Python 3.11

Set the scheduling policy for the process with PID pid. A pid of 0 means the calling process. policy is one of the scheduling policy constants above. param is a sched_param instance.

Syntax

PYTHON
os.sched_setscheduler(pid, policy, param, /)

See Also

sched_param