http://blog.chinaunix.net/uid-23302288-id-3795864.html
调整优先级:
1、任务未运行前进行调整# nice -n-20 sh /xxx/xxx.sh --以最高优先级运行xxx.sh这个脚本
# nice -n19 sh /xxx/xxx.sh --以最低优先级运行xxx.sh这个脚本
①
# top --查看系统当前进程运行情况
> r --键入小r ------ top后这下面还可以输入命令!!!
> PID to renice: --提示输入运行的进程的pid
> Renice PID 23302 to value: --把这个进程的nice值设置为多少,根据需要进行调整
②
# renice -20 PID 将进程的nice值改为-20
# renice 19 PID 将进程的nice值改为19