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


When do turn to a RTOS

Posted by Nobody/Anonymous on February 21, 2006

Does anyone have any good primers on when to turn to a RTOS? Thanks.

RE: When do turn to a RTOS

Posted by Jokke on February 22, 2006
Just trying to figure out when NOT using an RTOS:
-Extreme time constraints: All OS:s slow down task switching. Normally, on the other hand, you can bypass the OS for the very quick interrupts (> 1kHz I guess is very quick for most systems). The OS also uses rather much of the processor time (no exact figures, depends on a lot of things, e g tick rate, but tens of % I think is normal).
-Extremely small and energy constrained devices, where you can defend such greediness in hardware that you cannot afford the extra space to OS will need (5k is not much!), and where you will not have a very complicated application.
-Small projects with special processor. In some cases there is more work to port an existing OS, than to write a small timer-interrupt-based scheduler by yourself.

I have been working for about 15 years without OS, and 1 year with freeRTOS. I will stay with the OS if I can! It simplifies work, facilitates porting of third party software, and inproves software structure.

I am sure I have missed a lot :-). Let's see what other people say.


RE: When do turn to a RTOS

Posted by Henk Visser on February 22, 2006
My goal is to be sampling about 3 a/d channels as fast as possible. And while doing this I need to be able to read other devices and write to a screen. The faster sampling the better. >= 1 kHz. There have been so many timing issues that we have been trying to work out and most of the time we have been dropping in delays manually to balanace the timings!

If I am trying to sample a high speeds from what you are saying the OS might get in the way! I guess I can just try it out and see how fast I can do everything.

Thanks for your thoughts.

RE: When do turn to a RTOS

Posted by Nobody/Anonymous on February 22, 2006
You might like to try having your a2d sampling completely interrupt driven, with a fast data transfer to wherever the data is used. Then have cooperative tasks and a slow tick rate as possible to limit the overhead of the os.

[ 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