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


FreeRTOS with RMS

Posted by Rickey Leung on December 11, 2008
Does anybody know how to implement the RMS in FreeRTOS? Need to write separate program? Many thanks for your help.


RE: FreeRTOS with RMS

Posted by Richard on December 12, 2008
What is RMS?


RE: FreeRTOS with RMS

Posted by Rickey Leung on December 14, 2008
Dear Richard,

Thx for your help, I just sent you the email for the training.

Because we worked in RTAI environment before.
Besides preemptive priority-based FIFO and round robin scheduling, RTAI also support the Rate Monotonic Scheduling (RMS), I just wonder if FreeRTOS support it? If not, how to make the program to simulate?


RE: FreeRTOS with RMS

Posted by Richard on December 14, 2008
Ah - OK.

I don't think there is anything in FreeRTOS that prevents rate monotonic scheduling:

In its simplest form, for RMS you need:

+ A fixed priority preemptive scheduler - FreeRTOS does not use any dynamic priority algorithms so is a fixed priority preemptive system. Tasks are permitted to change their own priority and the priority of other tasks, so for RMS you would have to avoid using the vTaskPrioritySet() API function.

+ Tasks with the shortest period to be assigned the highest priority - There is no automatic way to do this, but presuming the system designer knows the period of each task then they can also ensure the priorities are assigned accordingly. FreeRTOS does not impose a limit on the number of priorities that are available.

+ Each task to be assigned a unique priority - again there is nothing to prevent you from doing this.

+ A known context switch time - the worst case is always calculable so this is also ok.

It would be best to then turn off the timeslicing (keeping the preemption) as timeslicing would just be an overhead with no benefit.

Do you agree? Or am I missing something?


RE: FreeRTOS with RMS

Posted by Rickey Leung on December 16, 2008
oooh~~ thx. That means need to write our own routine to handle such scheduler. U_U

[ 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