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.

----------------------------------------------------------
[EMAIL PROTECTED] xenomai-demos]# ./ex_rr
#####LOW priority thread!!!
...........###########...........############...........###########...........###########............###########...........###########...........############..........########........########........########........########...........##########............############...........###########...........###########...........###########............####################........................########################.........................########################........................#########################.........................########################......................############..#LOW priority thread!!! [EMAIL PROTECTED] 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: example.tbz2
Description: Binary data

Reply via email to