默认情况下,top列出两个列。我对两者之间的区别感到好奇。我签出了手册页,但无法弄清楚:
优先:
h: PR -- Priority
The priority of the task.
不错的价值:
i: NI -- Nice value
The nice value of the task. A negative nice value means higher priority,
whereas a positive nice value means lower priority. Zero in this field
simply means priority will not be adjusted in determining a task’s dis-
patchability.
我知道Nice值与内核的CPU调度程序队列有关;那么“优先级”表示什么?关于I / O的东西吗?
好的值是“全局”机制,而优先级现在与任务切换器相关。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句