1 Replies - 270 Views - Last Post: 12 January 2019 - 03:42 AM

#1 turboscrew   User is offline

  • D.I.C Lover
  • member icon

Reputation: 171
  • View blog
  • Posts: 1,107
  • Joined: 03-April 12

FreeRTOS scheduling and priorities?

Posted 05 January 2019 - 03:32 AM

This is not an assembly question, but since there is no general embedded section and I think this section is close...

Can anyone explain or have pointers to an explanation on how FreeRTOS handles priorities in scheduling?

I set a low priority to a suspended task and then resumed that task, and I was surprised that the resumed task was scheduled immediately.
I guess FreeRTOS uses dynamic priorities internally, but what (roughly) is the algorithm?
(Looks linke it doesn't.)

This post has been edited by turboscrew: 05 January 2019 - 05:16 AM


Is This A Good Question/Topic? 0
  • +

Replies To: FreeRTOS scheduling and priorities?

#2 turboscrew   User is offline

  • D.I.C Lover
  • member icon

Reputation: 171
  • View blog
  • Posts: 1,107
  • Joined: 03-April 12

Re: FreeRTOS scheduling and priorities?

Posted 12 January 2019 - 03:42 AM

The mystery is solved. The resuming task did the same thing to itself, so at the time of resuming, both tasks had equal priorities.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1