Hi Deborah,

Thanks for the reply and the reference link,
What I want to do is something like this, tell the scheduler about a
process(which is not started yet) and the scheduler adding it to the
rbtree. Any reference material you know of achieving this?

Regards,
Kanishk

On 4/24/12, Deborah Falcone <falconedebo...@gmail.com> wrote:
> 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

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to