On 4/25/12 1:49 AM, Kanishka Ariyapala wrote:
My goal is to make those processes(apps defined for that context) in
the running sate(high priority) ready to be run(when the user clicks
on it) and to decrease the priority of other apps(not defined for that
contexts) along with the other normal OS processes.

I plan to collect the data for context using the sensor's in the
Android, for the beginning with the GPS.

In your questions you have attacked the exact point I want! "a tweak
to the scheduler algorithms to create the desired scheduling effect
once the process comes into existence." under a particular context.

So far I have been trying to understand the scheduling process and was
looking for a way to add a process to the scheduler, but it is not
that simple because a have initialize data structures(like
task_struct) and then to be put in to the rbtree. Also to make it the
left most node as far as possible.

In your opinion how do you think I should proceed?

Have you thought of using cgroups for this? Create a cgroup for each context, assign the running apps to the cgroup and adjust shares to effectively increase the priority of the apps.

David

--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to