# priocntl -e -c class -m user-limit -p PRI command-name
执行该命令。
指定要在其中运行进程的类。有效类包括 TS(timesharing,分时)、RT(real time,实时)、IA(interactive,交互)、FSS(fair share,公平份额)和 FX(fixed priority,固定优先级)。
将此选项与 –p 选项一起使用时,还可指定可将优先级提高或降低的最大量。
允许您为实时线程指定在 RT 类中的相对优先级。对于分时进程而言,使用 –p 选项可以指定用户提供的优先级,该优先级范围是 -60 到 +60。
指定将执行的命令的名称。
# ps -ecl | grep command-name
以下示例显示如何以用户提供的最高优先级启动 find 命令。
# priocntl -e -c TS -m 60 -p 60 find . -name core -print # ps -ecl | grep find