From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jeff Weber <jwamsc@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] priority coupling and Linux threads
Date: Thu, 19 May 2011 20:35:43 +0200 [thread overview]
Message-ID: <4DD562FF.3020909@domain.hid> (raw)
In-Reply-To: <BANLkTinUMLHw_i23WGmcbBrEJiTREnyY6w@domain.hid>
On 05/19/2011 08:30 PM, Jeff Weber wrote:
> If XENO_OPT_PRIOCPL is enabled, can a non-Xenomai Linux thread, created
> via __real_pthread_create() preempt a Xenomai primary-mode or Xenomai
> secondary-mode thread?
a non-Xenomai Linux thread can preempt a Xenomai thread running in
secondary mode, independently from XENO_OPT_PRIOCPL. It can not preempt
a Xenomai thread running in primary mode, again, independently from
XENO_OPT_PRIOCTL.
What XENO_OPT_PRIOCTL changes, is that a Xenomai thread running in
secondary mode can preempt a Xenomai thread running in primary mode.
>
> For example, when the Linux kernel inherits the priority of a
> primary-mode thread to run it in secondary mode, can the kernel then
> discover some other Linux thread with better priority and preempt the
> secondary mode thread?
Yes, it can, but as soon as it decides to switch to this thread, the
priority coupling ends, and the system switches to primary mode threads,
if one is runnable.
--
Gilles.
next prev parent reply other threads:[~2011-05-19 18:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-19 18:30 [Xenomai-help] priority coupling and Linux threads Jeff Weber
2011-05-19 18:35 ` Gilles Chanteperdrix [this message]
2011-05-20 6:40 ` Henri Roosen
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=4DD562FF.3020909@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jwamsc@domain.hid \
--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.