命令:
nice(1): 以指定优先级运行程序
1 | nice [OPTION] [COMMAND [ARG]…] |
renice(8): 调整运行进程的优先级
1 | renice priority [[-p] pid …] [[-g] pgrp …] [[-u] user …] |
API:
nice(2): 改变进程优先级
1 | int nice(int inc); |
getpriority(2): 获取优先级
1 | int getpriority(int which, int who); |
setpriority(2): 设置优先级
1 | int setpriority(int which, int who, int prio); |