[android-kernel] Re: Cgroups and Priority

2012-09-19 Thread Glenn Kasten
This is one of those cases where it might be easier to read the code than to try to explain what the code is trying to do (or to understand my poor explanation). Starting from bottom up, I'd take a look at these files: system/core/rootdir/init.rc system/core/include/cutils/sched_policy.h sy

[android-kernel] Cgroups and Priority

2012-09-19 Thread Kanishka Ariyapala
Android is using two cgroups for back ground and foreground processors. Normally the foreground processes run at default priority and the background processes run at background priority (10) . How dose android switch processes between groups? or how dose android add a background process in to the b