<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta name="x_Generator" content="Microsoft Word 15 (filtered medium)">
<style>
<!--
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:x_link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
.x_MsoChpDefault
        {}
div.x_WordSection1
        {}
-->
</style>
<div lang="IT" link="blue" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi and thanks for reply.</p>
<p class="x_MsoNormal">I created two children and at the act of creation, I also assigned their priorities. That’s why I cannot understand why they are not scheduled.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Greetings,</p>
<p class="x_MsoNormal">Agostino</p>
<p class="x_MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman",serif"> </span></p>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal" style="border:none; padding:0cm"><b>Da: </b><a href="mailto:sebastian.huber@embedded-brains.de">Sebastian Huber</a><br>
<b>Inviato: </b>mercoledì 5 ottobre 2016 07:08<br>
<b>A: </b><a href="mailto:agostino.mascitti@student.univaq.it">Agostino Mascitti</a>;
<a href="mailto:rtems-users@rtems.org">RTEMS List</a><br>
<b>Oggetto: </b>Re: Creating tasks</p>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman",serif"> </span></p>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On 04/10/16 22:30, Agostino Mascitti wrote:<br>
><br>
><br>
> This means the father blocks in a busy wait (the while). But children <br>
> are never scheduled. They should be sheduled after <br>
> "rtems_task_start()", according to the official guide for c users. And <br>
> so the idea: the father is not pre-emptible? And if so, could you <br>
> suggest to me how to make it pre-emptible?<br>
><br>
<br>
No, tasks of the same priority are enqueued on the ready queues in FIFO <br>
order. So, if the executing task has priority 4 and you start a priority <br>
4 task, then the executing task keeps the processor. You can use a <br>
rtems_task_wake_after(RTEMS_YIELD_PROCESSOR) to hand over the processor <br>
to the next task of the same priority.<br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : +49 89 189 47 41-16<br>
Fax     : +49 89 189 47 41-09<br>
E-Mail  : sebastian.huber@embedded-brains.de<br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
</div>
</span></font>
</body>
</html>