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 ...
Mutex(ミューテックス)は、複数のタスクが同じ資源を同時に使わないようにするための排他制御です。 ESP32ではFreeRTOS上で複数のタスクが並行して動きます。たとえば、次のような共有資源を複数タスクから使う場合にMutexが必要になります。 たとえば、2 ...
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 ...
マルチタスクにおいて避けられない、タスク間の同期・排他制御プリミティブAPIであるセマフォ(Semaphore)とミューテックス(Mutex)について調べる。 セマフォ(Semaphore)と遅延割込み処理 セマフォとは「手旗信号」のことであり、旗を上げる(up)と通って ...
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 ...
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 ...