All of lore.kernel.org
 help / color / mirror / Atom feed
From: akavroulakis@gmail.com (alexis)
To: kernelnewbies@lists.kernelnewbies.org
Subject: scheduler help
Date: Mon, 08 Dec 2014 15:48:39 +0200	[thread overview]
Message-ID: <5485AC37.5010400@gmail.com> (raw)

hello to everyone ,
l have a assignment and i need help.
i have to change the scheduler function at kernel  2.6.38 so  that the 
scheduler choose the process
with the least slack time.

My problem :
i have create a function that iterates all runnable processes  finds the 
one with least slack time(lst)
and returns a pointer  to the task( struct task_struct*)
Now i need to change the scheduler so that  selected for execution the  
process with lst.

i am trying to change the function pick_next_task_fair in file sched_fair.c
but i cant understand the code in there can someone explain me ?

is the pick_next_task_fair the right function that need change?
if yes it is the only one ?

sorry for my English
thanks.

             reply	other threads:[~2014-12-08 13:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-08 13:48 alexis [this message]
2014-12-08 18:58 ` scheduler help Henry Hallam
2014-12-08 20:34   ` Valdis.Kletnieks at vt.edu
2014-12-08 23:12 ` Anish Kumar
2014-12-08 23:23   ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5485AC37.5010400@gmail.com \
    --to=akavroulakis@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.