All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Gunter <mlkhma@web.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: need help: scheduling
Date: Mon, 18 Apr 2005 09:21:28 -0400	[thread overview]
Message-ID: <1113830488.4294.174.camel@localhost.localdomain> (raw)
In-Reply-To: <1113829211.6730.8.camel@linux.site>

On Mon, 2005-04-18 at 15:00 +0200, Gunter wrote:
> Hello
> 
> I need help about scheduling. I hope i understand the basics for my
> question: An active prozess counts the remaining cpu time in jifies. By
> every timer interrupt the scheduler decrements the variable time_slice.
> 

Yes, this is correct.

> Where is the scheduler initializing the interrupt timer (init_timer).
> And where gets the struct timer_list the next interrupt (expires). At
> last i want know where the scheduler calls add_timer. Or is there an
> other way?
> 

The timer_list you are mentioning is used for events that need to go off
at a certain jiffy. This is not what the scheduler uses.  The
schedule_tick (which keeps track of the time_slices of processes) goes
off at a timer interrupt once a jiffy. This is architecture dependent,
and for x86 you can take a look at arch/i386/kernel/time.c
timer_interrupt.  This is (usually) setup in
arch/i386/mach-default/setup.c. Search for timer_interrupt for the
details, and then follow the trail there.

-- Steve



      reply	other threads:[~2005-04-18 13:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-18 13:00 need help: scheduling Gunter
2005-04-18 13:21 ` Steven Rostedt [this message]

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=1113830488.4294.174.camel@localhost.localdomain \
    --to=rostedt@goodmis.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mlkhma@web.de \
    /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.