Bird
0
0

Why does FreeRTOS recommend using mutexes with priority inheritance instead of binary semaphores for resource protection?

hard📝 Conceptual Q10 of 15
FreeRTOS - Task Scheduling
Why does FreeRTOS recommend using mutexes with priority inheritance instead of binary semaphores for resource protection?
AMutexes support priority inheritance preventing priority inversion; binary semaphores do not
BBinary semaphores are slower than mutexes
CMutexes allow multiple tasks to hold the resource simultaneously
DBinary semaphores automatically boost task priority
Step-by-Step Solution
Solution:
  1. Step 1: Understand difference between mutex and binary semaphore

    Mutexes support priority inheritance to prevent priority inversion; binary semaphores lack this feature.
  2. Step 2: Evaluate options

    Mutexes support priority inheritance preventing priority inversion; binary semaphores do not correctly states this; others are incorrect or misleading.
  3. Final Answer:

    Mutexes support priority inheritance preventing priority inversion; binary semaphores do not -> Option A
  4. Quick Check:

    Mutex vs binary semaphore = D [OK]
Quick Trick: Mutexes prevent inversion; binary semaphores do not [OK]
Common Mistakes:
  • Thinking binary semaphores boost priority
  • Believing mutexes allow multiple holders
  • Assuming binary semaphores are faster reason to use

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes