Skip to contentSkip to conversation

Communications between Threads

Xenomai-help [email protected] 2 participants 2 messages Nov 23, 2007

lore
Share & tools
lore
#0 lore raw

<<No, the thread has the priority you chose and is scheduled by Linux scheduler as any Linux task. But are you sure you are not using Xenomai posix message queues ?>>

For the moment I don't use anything (I have no source code). I just plans to use xenomai and I try understand the communication features between heterogeneous threads. I still don't understand how the real-time thread properties (priority, scheduling policy) are used by the linux scheduler when switching from the primary mode to the secondary mode.

Regards.
L.Poyart.

-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:[email protected]] Envoyé : vendredi 23 novembre 2007 15:53
À : [email protected]
Cc : [email protected]
Objet : Re: [Xenomai-help] Communications between Threads

Quoted 10 lines · On Nov 23, 2007 3:45 PM, <[email protected]> wrote:

Hi,

<<It is possible to use a standard posix message queue within a real-time thread, but your real-time thread will then switch to secondary mode, which means it would no longer be real-time.>>

Does the thread keep a higher priority compared to a standard linux thread? I don't really feel the effect of the switch from the primary mode to the secondary mode.

No, the thread has the priority you chose and is scheduled by Linux scheduler as any Linux task. But are you sure you are not using Xenomai posix message queues ?

Signature · 1 line
                                               Gilles Chanteperdrix
#1 lore raw
Quoted 6 lines · On Nov 23, 2007 4:17 PM, <[email protected]> wrote:

<<No, the thread has the priority you chose and is scheduled by Linux scheduler as any Linux task. But are you sure you are not using Xenomai posix message queues ?>>

For the moment I don't use anything (I have no source code). I just plans to use xenomai and I try understand the communication features between heterogeneous threads. I still don't understand how the real-time thread properties (priority, scheduling policy) are used by the linux scheduler when switching from the primary mode to the secondary mode.

When in secondary mode, a Xenomai thread is not different from any Linux thread.

Signature · 1 line
                                               Gilles Chanteperdrix