Quality RTOS & Embedded Software

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




Loading

Is there a limit on number tasks waiting on Mutex?

Posted by herlien on June 22, 2017

Subject says it all. If too many tasks are waiting on a single Mutex, will the next xSemaphoreTake() fail?


Is there a limit on number tasks waiting on Mutex?

Posted by heinbali01 on June 22, 2017

Other users will correct me if I'm wrong, but within FreeRTOS, the number of waiters for a queue or a mutex is unlimited. Waiters are put into a list, sorted on task priority. FreeRTOS has implemented a list in a very smart way. Every object that is linkable to a list, has a member of the type ListItem_t. This means that attaching or detaching does not need malloc/free. The list-item of an object will be linked into the list.


Is there a limit on number tasks waiting on Mutex?

Posted by rtel on June 22, 2017

That is correct. There is no limit.


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




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

Latest News

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


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