Le 22/02/2014 16:51, Christian Göbeler a écrit :
> One question regarding xenomai best practices.
> 
> I have to modify an application running user defined code in worker
> threads (POSIX threads).
> 
> Performance-wise is it better to create designated RT-Threads waiting
> for a condition to be signaled and then continue to run in primary mode
> whatever code the user passed in or would it be just as fast and
> reliable to promote an already running worker thread by changing its
> priority to let's say 99 for example and its sched-policy to FIFO?

It depends on where originates the event which triggers the thread. If
it originates from linux domain, there is no point waiting in primary
mode, if it originates from Xenomai domain, the priority change will
trigger a switch to secondary mode, so, you will loose the determinism
of the response to the event.


-- 
Gilles.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to