All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] 0-priority task in Cobalt
@ 2017-04-11 23:44 George Broz
  2017-04-12  9:03 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: George Broz @ 2017-04-11 23:44 UTC (permalink / raw)
  To: xenomai

Hello,

In the native skin for Xenomai 2.6.x, it was possible to create a
0-priority task - a Xenomai task that spends its life in secondary
mode except when calling/interacting with Xenomai services that would
temporarily promote it to primary mode.

Is it possible to create a 0-priority task through the Cobalt skin?
What are the calls/arguments needed?


Thanks in advance!

--George Broz
Moog Industrial Group


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

* Re: [Xenomai] 0-priority task in Cobalt
  2017-04-11 23:44 [Xenomai] 0-priority task in Cobalt George Broz
@ 2017-04-12  9:03 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2017-04-12  9:03 UTC (permalink / raw)
  To: George Broz, xenomai

On 04/12/2017 01:44 AM, George Broz wrote:
> Hello,
> 
> In the native skin for Xenomai 2.6.x, it was possible to create a
> 0-priority task - a Xenomai task that spends its life in secondary
> mode except when calling/interacting with Xenomai services that would
> temporarily promote it to primary mode.
> 
> Is it possible to create a 0-priority task through the Cobalt skin?
> What are the calls/arguments needed?
> 
> 

The equivalent is creating a thread using pthread_create() with the
SCHED_OTHER policy (which requires priority 0 in the sched_param
settings). libcobalt's pthread_setschedparam() can be used for the same
purpose on an existing thread.

-- 
Philippe.


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

end of thread, other threads:[~2017-04-12  9:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 23:44 [Xenomai] 0-priority task in Cobalt George Broz
2017-04-12  9:03 ` Philippe Gerum

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.