From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Adrien LEMAITRE <adrien.lemaitre@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Program hangs using "rt_task_sleep" in a particular way
Date: Tue, 28 Jun 2011 17:08:53 +0200 [thread overview]
Message-ID: <4E09EE85.4040005@domain.hid> (raw)
In-Reply-To: <BANLkTimTquz4n7qMzRd05gWAi6rkMmc2gw@domain.hid>
On 06/28/2011 04:02 PM, Adrien LEMAITRE wrote:
> Hi,
>
> Thanks for your answer.
>
> 2011/6/28 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
>
>> The problem is that the "rt_task_spawn" service causes its caller to
>> switch to secondary mode. This means, that the task is no longer real-time.
>>
>
> I wasn't aware of this fact. It could be annoying if we have to create
> several RT Tasks...
> It's only true for rt_task_spawn or for all Xenomai services ?
Which services stay in primary mode, and which services switch to
secondary mode is documented in the API documentation:
http://www.xenomai.org/documentation/xenomai-2.5/html/api/index.html
>
> A better practice will to first make several rt_task_create and after
> activate them by rt_task_start services?
Probably. But if these tasks use 100% cpu and never let linux run, you
will have other problems later (the first being that the system will no
longer respond to non real-time activities such as the consoles, the
graphic system, etc...).
>
>
>
>> Normally, root thread priority coupling should allow to avoid that.
>> Unfortunately, there is a small hole in this functionality which make it
>> not work in some conditions (and fixing this hole would introduce a
>> possibility of priority inversion).
>>
> My advisor (jerome Delatour from ESEO) want to better understand this point,
> where could I find explanations on this point ?
This is a point discovered recently, see the thread starting here:
https://mail.gna.org/public/xenomai-help/2011-03/msg00165.html
--
Gilles.
next prev parent reply other threads:[~2011-06-28 15:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-27 6:31 [Xenomai-help] Program hangs using "rt_task_sleep" in a particular way Adrien LEMAITRE
2011-06-27 10:53 ` Gilles Chanteperdrix
[not found] ` <BANLkTimCab2u0EOrJ6JtLTVLNAzktbvFQg@domain.hid>
2011-06-28 13:08 ` Gilles Chanteperdrix
2011-06-28 14:02 ` Adrien LEMAITRE
2011-06-28 15:08 ` Gilles Chanteperdrix [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-03-07 9:18 Jonathan ILIAS-PILLET
2011-03-07 10:15 ` Gilles Chanteperdrix
2011-03-07 14:29 ` Jonathan ILIAS-PILLET
[not found] ` <AANLkTinnCqCNrJ-tukjxGd-zdtM9nuG2fw4Zer+iTSiQ@mail.gmail.com>
2011-03-07 14:33 ` Gilles Chanteperdrix
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=4E09EE85.4040005@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=adrien.lemaitre@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.