Can coexists rtems tasks (Classic API) and posix task??

Gedare Bloom gedare at rtems.org
Fri Aug 30 20:22:13 UTC 2013


Yes. If I'm not mistaken, RTEMS tasks can also make posix calls.

Posix thread priorities are mapped to the RTEMS internal priority
range of 0-255 (realistically, 1-254, since 0 and 255 are reserved).
Note that the pthread priorties are inverted, so a 1 becomes 254, the
lowest schedulable priority in the system. After the mapping, the
scheduler sees both types of tasks as the same. You can inspect how
this is done when a pthread is created in the
cpukit/posix/src/pthreadcreate.c.

-Gedare



On Fri, Aug 30, 2013 at 3:13 PM, Nicolás Alvarez <nicoalar.22 at gmail.com> wrote:
> Hi all,
>
> It is possible to use in one app both kind of task? What is the scheduler
> behavior?
>
> Regards,
>
> Ing. Nicolás Alvarez
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>




More information about the users mailing list