R: Creating tasks
agostino.mascitti at student.univaq.it
Wed Oct 5 10:03:47 UTC 2016
Hi and thanks for reply.
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.
Da: Sebastian Huber<mailto:sebastian.huber at embedded-brains.de>
Inviato: mercoledì 5 ottobre 2016 07:08
A: Agostino Mascitti<mailto:agostino.mascitti at student.univaq.it>; RTEMS List<mailto:rtems-users at rtems.org>
Oggetto: Re: Creating tasks
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 embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users