FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [June 2017 Threads]
Hello,
could someone please clarify a point that I found in the change history of FreeRTOS revision?This point is regarding the context switching of task and is expressed in the history doc as: + Previously, when a task left the Blocked state, a context switch was
performed if the priority of the unblocked task was greater than or equal
to the priority of the Running task. Now a context switch is only
performed if the priority of the unblocked task is greater than the
priority of the Running task.
My understanding is here that in case of task that have the same priority the Round Robin wont be possible anymore? Or am I wrong? So the specific question is, if updating to version V8.0.0 the current priorities of the task should be reorganized.
Thank you in advance!
From my understanding, Round Robin still happens. What is different is if you have two task of the same prioritty, if one of the tasks unblocks the other, for instance by posting to a queue, then before, the task that was unblocked would be switched to immediately, while with the change, not until the first task yields, blocks, or the time tick occurs. This gives the first task a better chance to get its full share of the processor.
Thank you for your answear!It really helped!
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.