Carsten Spieß wrote:
> Hello,
> 
> i'm running Xenomai 2.3.2 on a PPC target with Linux 2.4.25 kernel.
> I trying to programm a supervising task, that detects a runaway task
> and suspend it.
> 
> My aproach was to make a high priority periodic task to look if
> the low prio task is running correctly and suspend it when it detects
> failure.
> But this approach didn't work, the higer prio task isn't called unless
> the lower prio task gives up cpu (by calling e.g. rt_task_yield or
> nanosleep) (see attached demo source)

This would basically say that the core does not give any real-time
guarantee. Please send some demo code showing this.

> 
> When not being cooperative (removing the rt_task_yield in the demo)
> my system is reset after some seconds.
> 
> Why isn't my supervising task scheduled?
> 

Try enabling the nucleus watchdog (Xenomai debug options). It does kill
runaway tasks. If this works on your setup, then your code must be
wrong. If it does not trigger, then we need to understand why  -- there
is one case where it may not trigger, but this does not involve any
breakage in task management.

> Tanks for help, regards
> 
> Carsten
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-help mailing list
> [email protected]
> https://mail.gna.org/listinfo/xenomai-help


-- 
Philippe.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to