[coyotos-dev] Sleep for interval
William Leslie
math.gasm.ttg at gmail.com
Thu Oct 4 11:50:21 EDT 2007
On 10/5/07, Jonathan S. Shapiro <shap at eros-os.com> wrote:
>
> Suppose, for a moment, that *all* sleep handling is done at user level.
> We then require a user-level sleep agent that can wait for the interval
> clock interrupt. Unfortunately, the kernel must *also* wait for the
> interval clock interrupt in order to implement preemption and primary
> scheduling functions.
>
> Having two parties attempt to handle an interrupt independent of each
> other is just begging for problems.
You could have the kernel hand off control to the scheduler after the
interrupt, and if a task was supposed to be given control at this critical
time, it will be next on the list. It seems like the important thing with
preemption here is that a task is forward enough in the list to receive
control in a timely manner, which is part of the process of ordering the
list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.coyotos.org/pipermail/coyotos-dev/attachments/20071005/5db88730/attachment.html
More information about the coyotos-dev
mailing list