Quality RTOS & Embedded Software

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




Loading

Speed Improvements in 8.2.0

Posted by tiron017 on March 9, 2015

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!


Speed Improvements in 8.2.0

Posted by rtel on March 9, 2015

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.


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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists