Change the scheduling parameter of a running timeshare process.
# priocntl -s -m userlimit [-p userpriority] -i idtype idlist |
-s |
Lets you set the upper limit on the user priority range and change the current priority. |
-m userlimit |
Specifies the maximum amount you can raise or lower your priority, when using the -p option. |
-p userpriority |
Allows you to designate a priority. |
-iidtype idlist |
Uses a combination of idtype and idlist to identify the process. The idtype specifies the type of ID, such as PID or UID. |
Verify the process status by using the ps -ecl command.
# ps -ecl | grep idlist |
The following example executes a command with a 500-millisecond time slice, a priority of 20 in the RT class, and a global priority of 120.
# priocntl -e -c RT -t 500 -p 20 myprog # ps -ecl | grep myprog |