public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter STIEGLITZ <peter.stieglitz@st.com>
To: linux-newbie@vger.kernel.org
Subject: Wait queues and scheduling
Date: Tue, 19 Oct 2004 15:24:41 +0100	[thread overview]
Message-ID: <004901c4b5e7$5f789f70$340d81a4@benin> (raw)

Folks,
I have a little question about scheduling.

If I have two waiting processes running in the context of the kernel on a wait queue (as a result of a blocked read). A high priority process is first in the wait queue and a low priority last in queue. An interrupt occurs and the ISR wakes up the first waiting process. The first process is woken, runs and exits kernel context back to user.

Which process now runs?

Is the waiting task scheduled as soon as the high priority returns to user mode or does the high priority process run until the low priority process is scheduled or the high sleeps and the low scheduled.

Thanks for any help
Regards
Pete

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

                 reply	other threads:[~2004-10-19 14:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='004901c4b5e7$5f789f70$340d81a4@benin' \
    --to=peter.stieglitz@st.com \
    --cc=linux-newbie@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