Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

Synchronization objects

Posted by Nobody/Anonymous on April 4, 2006
hello
on 32bit cpu semaphore takes 100 bytes in ram!
it very expansive.
it would very good if freertos would have like window's Event and Semaphore objects.

RE: Synchronization objects

Posted by Richard on April 4, 2006
The semaphore uses exactly the same code as the queue mechanism - it is just a macro wrapper around the queue code. This is done to minimise the ROM usage, rather than the RAM.

While the RAM usage may seem high for a semaphore the data structures within that 100 bytes contains all the event management data in addition to the semaphore data. There are no extra event control blocks required, and event data structures are not required to be allocated separately as in some other RTOS's. This (hopefully) is more efficient when looking at the system as a whole, rather than individual components. At least this is the intention :-)

Regards.

RE: Synchronization objects

Posted by Jeff Smith on April 4, 2006
The preference seems questionable to me... I've always seen that ROM was much more plentiful than RAM inside the MCU families I'm using (8 and 16-bit Freescale).

But then, I've been impressed by the overall system, so Richard makes a good point.


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




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.

Video: Watch James Gosling & Richard Barry at re:Invent, Las Vegas 2017.

New FAQ page about the FreeRTOS kernel and Amazon FreeRTOS.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner