Intermediate
Embedded Systems & IoT
Q72 / 100
What is the purpose of "mutex" (mutual exclusion) primitives in an RTOS when multiple tasks share a resource?
Correct! Well done.
Incorrect.
The correct answer is A) A mutex ensures that only one task at a time can access a shared resource, preventing race conditions by making other tasks wait until the resource is released
A
Correct Answer
A mutex ensures that only one task at a time can access a shared resource, preventing race conditions by making other tasks wait until the resource is released
Explanation
When multiple tasks might access shared data (like a sensor buffer), a mutex locks access so only one task modifies it at a time, preventing corrupted or inconsistent data from concurrent access.
Progress
72/100