在android文件系统init.rc中,有下面几行代码
mkdir /dev/cpuctl/fg_boost
chown system system /dev/cpuctl/fg_boost/tasks
chmod 0777 /dev/cpuctl/fg_boost/tasks
write /dev/cpuctl/fg_boost/cpu.shares 1024
mkdir /dev/cpuctl/bg_non_interactive
chown system system /dev/cpuctl/bg_non_interactive/tasks
chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
# 5.0 %
write /dev/cpuctl/bg_non_interactive/cpu.shares 52我的问题是控制cpu这个子系统中,fg_boost和bg_non_interactive文件夹中有什么用啊?
我只知道cpuctl/bg_non_interactive/tasks中是thread ID的,cpuctl/tasks是PID的,
而cpuctl/fg_boost/tasks中却为空,这个fg_boost文件夹是做什么的?那位大侠可以知道小弟下,不胜感激啊!还有一个问题就是这个share,有什么用呢?可以理解我优先级吗?
mkdir /dev/cpuctl/fg_boost
chown system system /dev/cpuctl/fg_boost/tasks
chmod 0777 /dev/cpuctl/fg_boost/tasks
write /dev/cpuctl/fg_boost/cpu.shares 1024
mkdir /dev/cpuctl/bg_non_interactive
chown system system /dev/cpuctl/bg_non_interactive/tasks
chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
# 5.0 %
write /dev/cpuctl/bg_non_interactive/cpu.shares 52我的问题是控制cpu这个子系统中,fg_boost和bg_non_interactive文件夹中有什么用啊?
我只知道cpuctl/bg_non_interactive/tasks中是thread ID的,cpuctl/tasks是PID的,
而cpuctl/fg_boost/tasks中却为空,这个fg_boost文件夹是做什么的?那位大侠可以知道小弟下,不胜感激啊!还有一个问题就是这个share,有什么用呢?可以理解我优先级吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货