Skip to contentSkip to conversation

Thread policy and priority in secondary mode

Xenomai-help Wolfgang Grandegger 2 participants 2 messages Jul 23, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

when a Xenomai POSIX thread switches to secondary mode, how can I define the policy and priority under which it should run under the Linux scheduler, especially, with SCHED_FIFO.

The Xenomai POSIX API function pthread_setschedparam() described in

http://www.xenomai.org/documentation/trunk/html/api/group__posix__sched.html#g95276f88e1a2cae7a37f792123a99144

does switch the thread to primary mode when the SCHED_FIFO policy is specified and therefore cannot be use for the secondary mode.

Wolfgang.

#1 lore raw
Quoted 6 lines · Wolfgang Grandegger

Hello,

when a Xenomai POSIX thread switches to secondary mode, how can I define the policy and priority under which it should run under the Linux scheduler, especially, with SCHED_FIFO.

Quoted 7 lines

The Xenomai POSIX API function pthread_setschedparam() described in

http://www.xenomai.org/documentation/trunk/html/api/group__posix__sched.html#g95276f88e1a2cae7a37f792123a99144

does switch the thread to primary mode when the SCHED_FIFO policy is specified and therefore cannot be use for the secondary mode.

__real_pthread_setschedparam(). Note: this will propagate the priority to the underlying Xenomai thread as well.

Quoted 7 lines

Wolfgang.

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

Signature · 1 line
Philippe.