亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標題: /proc/stat 中的一個小問題 [打印本頁]

作者: aprilava    時間: 2010-07-01 10:24
標題: /proc/stat 中的一個小問題
請問各位大俠/proc/stat中 cpu時間中的nice到底是啥意思呢。
man proc 找到/proc/stat,里邊是這樣說的:
The number of jiffies (1/100ths of  a  second)  that  the
system  spent  in  user mode, user mode with low priority
(nice), system mode, and  the  idle  task,  respectively.
The  last  value  should be 100 times the second entry in
the uptime pseudo-file.
想問下user mode with low priority是翻譯成低優(yōu)先權的用戶態(tài)模式嗎?具體是什么含義呢?小弟搞不懂了
作者: kgn28    時間: 2010-07-01 11:29
回復 1# aprilava


    這是一個老的概念了,在基于優(yōu)先級的調度上,pro越高,運行時間越長,反之亦然,nice就是用來調整pro的,可以是負值(減少運行時間),F(xiàn)在基于CFS的調度不太一樣了,這個應該是保持老的接口吧。
   可以看看這個:
進程調度器--UNIX還是是老大http://blog.csdn.net/dog250/archive/2010/02/09/5302871.aspx
使用完全公平調度程序(CFS)進行多任務處理http://www.ibm.com/developerworks/cn/linux/l-cfs/
Linux 調度器內幕http://www.ibm.com/developerworks/cn/linux/l-scheduler/




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2