rtsched

Purpose:

Execute a command with real-time priority or change the real-time priority of a currently executing process pid.

Enter:

rtsched <-s scheduler> <-p priority> command [arguments]

or

rtsched <-s scheduler> <-p priority> <-P pid>

Where:

-s scheduler

Specify one of the following schedulers:

  • SCHED_FIFO
  • SCHED_RR
  • SCHED_OTHER

-p priority

Specify the task priority.

-P pid

Specify a currently executing process ID

Example:

rtsched   -s SCHED_FIFO    -p 10   a.out
 
The above example executes file a.out with SCHED_FIFO  at a priority of 10.

rtsched  -s  SCHED_RR     -p 10    -P  23131

The above example executes the task corresponding to pid 23131 with SCHED_RR at a priority of 10.

Notes:

This program must run as root.

See Also: