Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐: 强烈推荐:Ylmf OS 3.0 正式版发布附迅雷高 XP系统下硬盘安装Fedora 14图文教程
搜索:
您的位置: Linux安全网 > Linux入门 > » 正文

redhat6_priority

来源: 未知 分享至:

priority 

1)the priority rules.

-20 highest right,  19 lowest right,   0 default right.

2)the init priority

1@@@@check the priority.

[root@station13 Desktop]# ps axo command,nice,cpu,pid | grep init

/sbin/init                    0   -     1

grep init                     0   -  3065

@@@the init is origin of the user space,it begin after computer load the kernel.

2@@@backstage guard.

[root@station13 Desktop]# nohup sleep 777 &

[1] 3071

[root@station13 Desktop]# nohup: ignoring input and appending output to `nohup.out\'

[root@station13 Desktop]# ps axo command,nice,pid | grep \'sleep 777\'

sleep 777                     0  3071

grep sleep 777                0  3090

@@@the command nohup is the backstage guard. even though you close the terminal

,it still run at backgroud.

3)set.html' target='_blank'>reset the priority of process.

1@@@@change the 0 to -20(highest).

[root@station13 Desktop]# renice -20 3071

307

1: old priority 0, new priority -20

@@@the renice command trail the pid .

@@@only if you can find the pid of process,you could be change the priority.

@@@but remember only root could change the priority to highest.

2@@@@other users no permition to change the priority.

[root@station13 Desktop]# renice -19 3071

3071: old priority -20, new priority -19


Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史