* Wait queues and scheduling
@ 2004-10-19 14:24 Peter STIEGLITZ
0 siblings, 0 replies; only message in thread
From: Peter STIEGLITZ @ 2004-10-19 14:24 UTC (permalink / raw)
To: linux-newbie
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-19 14:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-19 14:24 Wait queues and scheduling Peter STIEGLITZ
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox