public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Elladan <elladan@eskimo.com>
To: "Povolotsky, Alexander" <Alexander.Povolotsky@marconi.com>
Cc: "'Elladan'" <elladan@eskimo.com>,
	"'Mike Galbraith'" <efault@gmx.de>,
	"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: Maximum frequency of re-scheduling (minimum time quantum) que stio n
Date: Wed, 7 Jul 2004 08:52:58 -0700	[thread overview]
Message-ID: <20040707155258.GA8270@eskimo.com> (raw)
In-Reply-To: <313680C9A886D511A06000204840E1CF08F42FD9@whq-msgusr-02.pit.comms.marconi.com>

On Wed, Jul 07, 2004 at 05:48:17AM -0400, Povolotsky, Alexander wrote:
> Thanks again (and sorry for annoying yet again)!
> 
> >If an interrupt from some device, or the timer interrupt, causes a
> >high-priority process to become runnable 
> 
> I guess, you are referring above to what is also called "process wake-up" or
> "process awakening" ?
> What are the specific means of effecting "process wake-up" (say at the
> interrupt time) ?

If the high priority process was blocked waiting for something (eg.,
data from a device) and the interrupt causes data to be available on the
object the process is blocked on, then the high priority process will be
woken up and will then become runnable again.

> >All system calls execute schedule() before returning to user space, if
> >schedule has been requested.  It's done in the system call handler.  An
> >interrupt will also schedule if necessary.
> 
> Does above suggest that OS calls (with the schedule NOT being requested) are
> permissable to be executed from the ISR (Interrupt Service Routine)?
> ... - I have been told that anything, that invokes the scheduler is not
> callable from the ISR ...

The top half interrupt handler just basically puts the interrupt on a
list.  The bottom half handler then runs with a full context and can
schedule.

If the current process was already executing in the kernel, then the
bottom half is delayed until the end of the current call.  Otherwise, it
happens immediately afterward.

-J

  reply	other threads:[~2004-07-07 15:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-07  9:48 Maximum frequency of re-scheduling (minimum time quantum) que stio n Povolotsky, Alexander
2004-07-07 15:52 ` Elladan [this message]
     [not found] <320586863@toto.iv>
2004-07-13  0:20 ` Maximum frequency of re-scheduling (minimum time quantum ) " peterc
  -- strict thread matches above, loose matches on Subject: below --
2004-07-08 13:01 Povolotsky, Alexander
2004-07-08 23:32 ` Peter Williams
2004-07-08 23:41   ` William Lee Irwin III
2004-07-09  1:46   ` Nick Piggin
2004-07-09  1:57     ` Andrew Morton
2004-07-09  4:18       ` Con Kolivas
2004-07-09  4:48         ` Andrew Morton
2004-07-09  3:04     ` Peter Williams
2004-07-07  7:59 Maximum frequency of re-scheduling (minimum time quantum) " Povolotsky, Alexander
2004-07-07  8:30 ` Bernd Eckenfels
2004-07-07  8:59 ` Elladan
2004-07-07 10:26   ` Con Kolivas
     [not found] <313680C9A886D511A06000204840E1CF08F42FD4@whq-msgusr-02.pit .comms.marconi.com>
2004-07-05 15:33 ` Mike Galbraith
2004-07-05 14:18 Povolotsky, Alexander
2004-07-05 23:26 ` Peter Williams

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=20040707155258.GA8270@eskimo.com \
    --to=elladan@eskimo.com \
    --cc=Alexander.Povolotsky@marconi.com \
    --cc=efault@gmx.de \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox