Creating tasks

Sebastian Huber sebastian.huber at
Wed Oct 5 05:07:56 UTC 2016

On 04/10/16 22:30, Agostino Mascitti wrote:
> This means the father blocks in a busy wait (the while). But children 
> are never scheduled. They should be sheduled after 
> "rtems_task_start()", according to the official guide for c users. And 
> so the idea: the father is not pre-emptible? And if so, could you 
> suggest to me how to make it pre-emptible?

No, tasks of the same priority are enqueued on the ready queues in FIFO 
order. So, if the executing task has priority 4 and you start a priority 
4 task, then the executing task keeps the processor. You can use a 
rtems_task_wake_after(RTEMS_YIELD_PROCESSOR) to hand over the processor 
to the next task of the same priority.

Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

More information about the users mailing list