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] [March 2015 Threads]
Some of the documentation for the new 8.2.0 release describes binary semaphores as being "up to" 35% faster than older versions and the new task notifications as being "up to" 45% faster. I am trying to decide if it is worth the work to upgrade to the new version, but I cannot find anything quantifiable about these claims.
Does anyone know exactly what changes were made to gain these speed improvements? How would I know if my use case would benefit from them? Any information would be appreciated.
Thanks!
In both cases the improvements come from making the code less generic. Or, to put it another way, more specific to a particular use case. That was done on the general recognition that code size is becoming less important overall.
I actually took the measurements you refer to myself - and did so by counting the number of instruction cycles used to give a semaphore or task notification from an interrupt (I didn't count them by hand, I let the simulator do that for me ;o)
Task notifications are must faster because there is much less to do. There is much less to do because their use case is quite different from that of a binary semaphore. Particularly, the notification goes directly to a task, so there is no need to check if there are other tasks waiting for the notification as there would be if a semaphore was used (any number of tasks can pend on the same semaphore).
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.