All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: George Broz <brozgeo@gmail.com>, xenomai@xenomai.org
Subject: Re: [Xenomai] 0-priority task in Cobalt
Date: Wed, 12 Apr 2017 11:03:28 +0200	[thread overview]
Message-ID: <11791336-01d4-3921-ed8f-12308103c9f6@xenomai.org> (raw)
In-Reply-To: <CAMcKmiG4M5gW_bcYLM0Zg57k2ySSbs5skkf32EFchwYkUNvMDQ@mail.gmail.com>

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.


      reply	other threads:[~2017-04-12  9:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-11 23:44 [Xenomai] 0-priority task in Cobalt George Broz
2017-04-12  9:03 ` Philippe Gerum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11791336-01d4-3921-ed8f-12308103c9f6@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=brozgeo@gmail.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.