Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]

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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

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