A UNIX Command
$chrt -m SCHED_OTHER min/max priority : 0/0 SCHED_FIFO min/max priority : 1/99 SCHED_RR min/max priority : 1/99 SCHED_BATCH min/max priority : 0/0 SCHED_IDLE min/max priority : 0/0 $chrt -b -p 0 4555 $chrt -p 4555 pid 4555's current scheduling policy: SCHED_BATCH pid 4555's current scheduling priority: 0 $chrt -o -p 0 4555 $chrt -p 4555 pid 4555's current scheduling policy: SCHED_OTHER pid 4555's current scheduling priority: 0 $
UNIX Explanation
chrt sets or retrieves the real-time scheduling attributes of an existing PID or runs COMMAND with the given attributes. Both policy (one of SCHED_OTHER, SCHED_FIFO, SCHED_RR, SCHED_BATCH, or SCHED_IDLE) and priority can be set and retrieved.