From: Ulrich Schwab <schwab@domain.hid>
To: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai 2.0.1 - Posix Skin - realtime priorities - what I'm doing wrong?
Date: Fri, 9 Dec 2005 16:50:11 +0100 [thread overview]
Message-ID: <200512091650.11637.schwab@domain.hid> (raw)
In-Reply-To: <439995C0.6030006@domain.hid>
On Friday 09 December 2005 15:33, Paolo Gai wrote:
> Dear all,
>
> First of all, I would like to thank Philippe for the long and exaustive
> reply to my previous post about the scheduling example.
>
> I'm now trying the POSIX skin to write a very simple example using
> real-time priorities, RR and FIFO scheduling.
>
> The idea is that a high priority task creates two medium priority tasks
> (that just prints something using printf) and a low priority task (that
> prints a message). The example is run twice, in one case the medium
> priority tasks have SCHED_FIFO, in another case they have SCHED_RR.
>
> I would expect that in both cases the two medium priority tasks would
> run printing their characters (either in a FIFO order or mixed when
> using RR), and at their end the low priority task would have run
> printing its message.
I did not look inside Your code, but if You are using printf the threads will
be switched back to secondary domain (non-RT), this might screw up the order
of scheduling.
You can try using a pipe to hand down the print output to a reader thread in
secondary domain. This way Your threads in primary domain stay where they
belong.
So long,
Ulrich Schwab
--
====================================================
inmess GmbH
Frankfurter Str. 74
D - 64521 Gross-Gerau
Phone: +49 6152 97790
Fax : +49 6152 977920
mail : info@domain.hid
web: www.inmess.de
====================================================
next prev parent reply other threads:[~2005-12-09 15:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-09 14:33 [Xenomai-help] Xenomai 2.0.1 - Posix Skin - realtime priorities - what I'm doing wrong? Paolo Gai
2005-12-09 15:50 ` Ulrich Schwab [this message]
2005-12-09 18:05 ` Gilles Chanteperdrix
2005-12-09 20:20 ` Paolo Gai
2005-12-09 21:29 ` Gilles Chanteperdrix
2005-12-10 10:53 ` Paolo Gai
2005-12-10 11:14 ` Paolo Gai
2005-12-11 21:34 ` Gilles Chanteperdrix
2005-12-09 15:58 ` [Xenomai-help] Boot problem V2.0.1 with Kernel 2.6.12 Stephan Zimmermann
2005-12-10 10:55 ` Philippe Gerum
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=200512091650.11637.schwab@domain.hid \
--to=schwab@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.