Quality RTOS & Embedded Software

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




Loading

about Ready Task lists

Posted by Nobody/Anonymous on July 2, 2005
could anyone tell me why we use several pxReadyTasksLists which are created for each priority instead of using a single pxReadyTasksList for all priroities.

RE: about Ready Task lists

Posted by Richard on July 2, 2005
It is done for speed and determinism - at the cost of RAM.

Maintaining a single queue of tasks in priority order would use less RAM, but inserting a task into a sorted queue within the RTOS tick would require searching the queue to find the correct position which is slow and non deterministic.

Maintaining a queue for each priority means the queues do not need to be sorted into priority order. Adding and removing tasks to the front and back of queues is quick and deterministic.


Bit of a rushed answer as I’m short of time at the moment – but hopefully ok?

Regards.


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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