Re: AW: L4_ThreadSwitch behaviour

Ben Leslie <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.l4ka.general
Message-ID <[email protected]>
On Fri Feb 16, 2007 at 11:30:17 +0100, Christian, Martin, OPEE45 wrote:
>Hi Ben!
>Now it's working! :-) I've changed two things:
>a) I'm using a loop for time slice donation
>b) I'm setting the prioriy of the Pager to 0xff (the same as roottask)
>
>I assume after the Pagefault IPC was created, the Scheduler is run to select the next runnable thread - which is roottask. Thus the Pager is never executed.
>
>But that seems unfair to me! Ping thread got donated a time slice but can't ever use it. Just because it creates a Pagfault at startup and thus sending an IPC is required, which in turn triggers the scheduler. But I suppose, that's life ... :-/

Getting scheduling right with timeslice donation is quite tricky, and
probably best avoided.

Cheers,

Benno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.