Start a process with a designated priority.
# priocntl -e -c class -m userlimit -p pri command_name |
-e |
Executes the command. |
-c class |
Specifies the class within which to run the process. The default classes are TS (timesharing) or RT (real-time). |
-m userlimit |
Specifies the maximum amount you can raise or lower your priority, when using the -p option. |
-p pri command_name |
Lets you specify the relative priority in the RT class, for a real-time thread. For a timesharing process, the -p option lets you specify the user-supplied priority which ranges from -20 to +20. |
Verify the process status by using the ps -ecl command.
# ps -ecl | grep command_name |
The following example starts the find command with the highest possible user-supplied priority.
# priocntl -e -c TS -m 20 -p 20 find . -name core -print # ps -ecl | grep find |