All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai 2.0.1 - Posix Skin - realtime priorities - what I'm doing wrong?
@ 2005-12-09 14:33 Paolo Gai
  2005-12-09 15:50 ` Ulrich Schwab
  2005-12-09 15:58 ` [Xenomai-help] Boot problem V2.0.1 with Kernel 2.6.12 Stephan Zimmermann
  0 siblings, 2 replies; 10+ messages in thread
From: Paolo Gai @ 2005-12-09 14:33 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 2419 bytes --]

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.

Instead, both with and without Xenomai, I obtain an output similar to 
the following one.

----------------------------------------------------------
[root@domain.hid xenomai-demos]# ./ex_rr
#####LOW priority thread!!!
...........###########...........############...........###########...........###########............###########...........###########...........############..........########........########........########........########...........##########............############...........###########...........###########...........###########............####################........................########################.........................########################........................#########################.........................########################......................############..#LOW 
priority thread!!!
.......########........########.........#########.......########........########.........#########.......#######........########........#########........########........########.........#########........#######........########.........#########........########.......########.........########........########........########.........#########........................#########################.........................########################.......................######################.................................############################################.......................############[root@domain.hid 
xenomai-demos]#
----------------------------------------------------------

I attach the source code of the example...

Does the behavior I obtain is normal? What I'm doing wrong?

bye

Paolo


[-- Attachment #2: example.tbz2 --]
[-- Type: application/octet-stream, Size: 1795 bytes --]

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

end of thread, other threads:[~2005-12-11 21:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.