Markus Seemann wrote:
> Hello,
> 
> a more theoretical question:
> 
> Is it possible to provocate a deadlock while switching a RTTask from
> primary mode to secondary mode when the interrupt shield is
> activated? Perhaps with this kind of scenario: - linux process takes
> semaphore - RTTask switches to secondary mode and also tries to take
> this semaphore - The semaphore would be released in ISR context of
> the linux kernel. But the interrupt shield prevents the execution of
> this isr.
> 
> How realistic is this scenario?

Does not look very realistic, but it is possible. Anyway, the interrupt
shield no longer exists in Xenomai 2.5.

> 
> 
> Another question: Is it possible to avoid mode switches for realtime
> tasks at compile time for a specific task?

No. But we provide a way to detect and act upon them at run-time.

When a switch to secondary mode happens, it is necessary to get the task
to continue running, so, the only way to handle such situation would be
to destroy the task in need for a switch to secondary mode.

-- 
                                            Gilles.

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

Reply via email to