Camila_99$$
DIIDevHeads IoT Integration Server
•Created by Boss lady on 5/30/2024 in #middleware-and-os
How can I implement priority inheritance or ceiling protocol in my FreeRtos app?
Hi! @Boss lady To prevent priority inversion in your FreeRTOS application use priority inheritance by creating mutexes with
xSemaphoreCreateMutex()
. Tasks using the mutex will temporarily inherit higher priority if needed.
For priority ceiling, manually set the task priority to the highest level before accessing shared resources and restore it afterward. This ensures smooth task execution.6 replies