How to configure and use the FreeRTOS API to synchronize two threads using a mutex. While semaphores are used to notify threads, mutexes are used to protect critical sections, shared resources from ...
Picture this: Your high-priority task is stuck waiting for a low-priority task to release a shared resource, while a medium-priority task happily consumes all the CPU time. This isn't just inefficient ...
This project is a demonstration of the priority inversion problem and how FreeRTOS mutex automatically solves it using priority inheritance. The code creates three tasks with different priorities ...
Mutex(ミューテックス)は、複数のタスクが同じ資源を同時に使わないようにするための排他制御です。 ESP32ではFreeRTOS上で複数のタスクが並行して動きます。たとえば、次のような共有資源を複数タスクから使う場合にMutexが必要になります。 たとえば、2 ...
As embedded systems engineers and software developers, we often navigate the worlds of real-time operating systems (RTOS) like FreeRTOS and general-purpose kernels like Linux. While FreeRTOS is ...