Re: [Xenomai-core] Question on preempting a linux task

2012-01-12 Thread Gilles Chanteperdrix
On 01/12/2012 04:58 PM, Jan-Erik Lange wrote:
> 
> Hello,
> 
> Does the Xenomai scheduler has to interact with the Linux sheduler in
> order to preempt the tasks which are managed by it? Or is the Xenomai
> scheduler repealing the whole linux scheduler when it wants to run a
> task and and linux is running a task?
> 
> Best regards Jan

No, xenomai may preempt linux in the middle of almost anything, that is
the whole point of being based on the adeos patch. However, when a task
needs to change scheduler, the two schedulers have to cooperate. If you
are interested in the details, see xnshadow_relax and xnshadow_harden in
ksrc/nucleus/shadow.c in xenomai sources.

-- 
Gilles.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


[Xenomai-core] Question on preempting a linux task

2012-01-12 Thread Jan-Erik Lange

Hello,
 
Does the Xenomai scheduler has to interact with the Linux sheduler in order to 
preempt the tasks which are managed by it? Or is the Xenomai scheduler 
repealing the whole linux scheduler when it wants to run a task and and linux 
is running a task?
 
Best regards
Jan   ___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core