binW
binW

Reputation: 13672

Priority value in FreeRTOS xTaskCreate() method

I can not seem to find what a priority value passed to task creation functions of FreeRTOS mean. If I remember correctly ThreadX uses smaller values for higher priorities i.e task with priority value 1 has higher priority value than task with priority value 2. But for FreeRTOS I cant seem to find whether if it is the same or if it is the opposite i.e higher value meaning higher priority.

I have tried googling but couldn't find anything. FreeRTOS API reference page for xTaskCreate only specifies that this is the priority value. Can some one please help resolve this confusion.

Upvotes: 12

Views: 19721

Answers (1)

binW
binW

Reputation: 13672

Found answer to my question in FreeRTOS Quick start guide. The section on task priorities explains that lower priority numbers denote lower priority tasks and idle task has priority zero which is the lowest priority.

Upvotes: 16

Related Questions