Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

FreeRTOS context switching in V8.0.0

Posted by virgulap on June 28, 2017

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!


FreeRTOS context switching in V8.0.0

Posted by richarddamon on June 28, 2017

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.


FreeRTOS context switching in V8.0.0

Posted by virgulap on June 29, 2017

Thank you for your answear!It really helped!


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner