Skip to contentSkip to conversation

Threads Posix real time and not real time

Xenomai-help Perrine Martignoni 2 participants 2 messages May 10, 2007

lore
Share & tools
lore
#0 lore raw

Is it possible to do communicate a thread posix real time and a thread posix non real time?
Can we create a thread posix non real time with some options?

#1 lore raw
Quoted 2 lines · Perrine Martignoni

Is it possible to do communicate a thread posix real time and a thread posix non real time?

No, the native skin has such a feature (message pipes), but this feature has no incarnation in the posix skin.

The way to do this with the posix skin is to create a thread with SCHED_OTHER policy and priority set to 0, and to have this thread communicate with real real-time threads with a posix message queue and do non real-time duties.

Quoted 1 line

Can we create a thread posix non real time with some options?

To create a non real-time thread, use __real_pthread_create instead of pthread_create.

Signature · 1 line
                                                 Gilles Chanteperdrix