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] [July 2005 Threads] about Ready Task listsPosted 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 listsPosted 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 Im short of time at the moment but hopefully ok?
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|