Priority level for combining native task and pthread.

Gedare Bloom gedare at
Wed Dec 24 16:05:39 UTC 2014

For anything POSIX you may consult the standards documents, for

The short answer is that priorities are inverted--1 is the lowest, 255
the highest. Internally, all priorities are remapped, For pthreads,
this is remapped_prio = 256 - prio;

You can mix threads with priority assigned by different APIs. The
internal remapping will assign them to priority lists accordingly.


On Wed, Dec 24, 2014 at 1:08 AM, Thomas Kim < at> wrote:
> Dear Sir,
> Our testing code include both rtems native tasks(example: network stack) and
> posix pthreads.
> As I know from c user guide, priority level of rtems native task is from 1
> to 255. also, 1 is highest priority. 255 is lowest priority.
> But, there is not any information from posix user guide regarding pthread
> priority level.
> please could you let me know priority level for posix pthread ?
> also, I want to know RTEMS sheduler policy in case of using both rtems
> native tasks and posix pthread.
> Please advise me.
> Best Regards,
> Thomas Kim
> _______________________________________________
> users mailing list
> users at

More information about the users mailing list