All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] changing priority and policy VS unblocking
@ 2014-02-22 15:51 Christian Göbeler
  2014-02-23 16:31 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Göbeler @ 2014-02-22 15:51 UTC (permalink / raw)
  To: xenomai

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?


Thanks

Christian


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai] changing priority and policy VS unblocking
  2014-02-22 15:51 [Xenomai] changing priority and policy VS unblocking Christian Göbeler
@ 2014-02-23 16:31 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2014-02-23 16:31 UTC (permalink / raw)
  To: xenomai

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-23 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-22 15:51 [Xenomai] changing priority and policy VS unblocking Christian Göbeler
2014-02-23 16:31 ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.