Hi Kanishka, Thanks Deborah, > > What are these five files - sched.c, sched.h, sched_fair.c ?? > > I read part of Android source code and I find notice about scheduler in *sched.h, sched_policy.h, sched_policy.c*!
file:///C:/Users/Deborah/Desktop/SCHEDULER%20ANDROID/scheduler%20-%20Android%20Process%20Scheduling%20-%20Stack%20Overflow.htm here there is information about difference between Android and Linux CFS's implementation. > Yes, rbtree sorts according to vruntime, and smallest is the left most > node and the scheduler just selects the left most node. right? > It's rigth. The key is: *vruntime - min_vruntime*. > > Any ideas on how to add a process to the rbtree? The metod that add a process to runqueue is put_prev_task. > usually when a user starts a process it is added, right? It's rigth! > In my case user has not accessed the process yet? wants it to be in the > rbtree so that process starts > quickly when the user starts the process. > > I don't know how this can be done. Regards, Deborah -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel