Henri Roosen wrote:
> We have the same requirement for which we also have no solution. One
> of our threads has a configurable priority of which at the lowest
> priority the thread should behave like an idle task that is only
> scheduled when all xenomai threads are idle and also the Linux domain
> is idle. The thread might use rtdm-drivers and xenomai mutexes and
> therefore has to be moved to the Xenomai domain. But then it always
> has higher priority than any threads scheduled in linux.
>
> Actually, when seen from the first domain, this requirement would be
> solved when we could set a first domain priority for the second
> domain... Gilles, is that what is meant by the SCHED_IDLE policy for
> Linux?
What I meant is that this problem really looks like a problem with Linux
scheduler, not with Xenomai scheduler. You want your task scheduled when
Linux has not any other task to run, the fact that it will be run when
Xenomai has no other task to run simply follows from the fact that Linux
tasks are already run when Xenomai has not any Xenomai task to run.
And in fact SCHED_IDLE already exists and does what you expect. However,
I do not know if a task running with SCHED_IDLE may have a shadow (I
guess not), that is our real problem now.
--
Gilles.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help