HP-UX Reference (11i v3 07/02) - 1 User Commands N-Z (vol 2)

r
rtsched(1) rtsched(1)
0 if command is successfully scheduled or if pid’s real-time priority is successfully changed;
1 if command is not executable, pid does not exist, or priority is not within the priority range
for the corresponding scheduler;
2 if command (pid) lacks real-time capability, or the invoker’s effective user
ID
is not a user
who has appropriate privileges, or the real or effective user or the real or effective user
ID
does not match the real or saved user
ID of the process being changed; or
5 if rtsched encountered an internal error or if rtsched is not supported by this release.
EXAMPLES
Execute file
a.out with SCHED_FIFO at a priority of 10:
rtsched -s SCHED_FIFO -p 10 a.out
Execute file a.out with SCHED_RTPRIO at a priority of 127 (this is synonymous to
rtprio 127
a.out
):
rtsched -s SCHED_RTPRIO -p 127 a.out
Execute file a.out with the SCHED_HPUX scheduler:
rtsched -s SCHED_HPUX a.out
This is useful to spawn a timeshare priority command from a real-time priority shell.
Set the currently running process pid 24217 to execute with SCHED_RR2 at a priority of 20:
rtsched -s SCHED_RR2 -p 20 -P 24217
Now change its priority to 10 using the same scheduler:
rtsched -p 10 -P 24217
WARNINGS
Priority values used by rtsched may differ from those used by other commands. For example, ps(1)
displays the internal representation of priority values.
AUTHOR
rtsched was developed by HP.
SEE ALSO
rtprio(1), setprivgrp(1M), getprivgrp(2), pset_create(2), rtprio(2), rtsched(2).
214 Hewlett-Packard Company 2 HP-UX 11i Version 3: February 2007