Peter Pastor wrote:
> Hey Gilles,
>
>>> There is no such thing as unwanted mode switches from secondary mode
> to primary mode.
> Really ?? I want to ensure that my boarder line thread runs in SECONDARY
> mode except when it is accessing the shared memory. The reason for that
> is that I want linux to be able to preempt that thread if necessary. I
> have enabled the Xenomai watchdog to kill real-time threads when they
> starve the linux kernel. Thus, the result is that this watchdog kills
> (or sometimes only preempts?) my boarder line thread (preempting is OK,
> but killing is NOT). I see that the watchdog kicked in in the logs
> (dmesg). This happens roughly every 5-10min or so... My idea is, that if
> I force the thread to run in secondary mode (after accessing the shared
> memory), it will be a regular linux thread (and can be preempted). Thus,
> having it switch to primary mode is unwanted, is it ?
>
> What am I missing here ?
If the watchdog kills a thread, it means that the thread has an infinite
loop. The bug is this infinite loop, not the fact that the thread is
running in primary mode. You can install a handler for the watchdog
signal to see where the infinite loop is.
--
Gilles.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help