Bird
0
0

Which FreeRTOS API is used to create a mutex that supports priority inheritance?

easy📝 Syntax Q12 of 15
FreeRTOS - Task Scheduling
Which FreeRTOS API is used to create a mutex that supports priority inheritance?
AxQueueCreate()
BxSemaphoreCreateMutex()
CvTaskDelay()
DxTaskCreate()
Step-by-Step Solution
Solution:
  1. Step 1: Identify mutex creation functions

    FreeRTOS uses xSemaphoreCreateMutex() to create mutexes with priority inheritance.
  2. Step 2: Differentiate other APIs

    xQueueCreate() creates queues, vTaskDelay() delays tasks, and xTaskCreate() creates tasks, not mutexes.
  3. Final Answer:

    xSemaphoreCreateMutex() -> Option B
  4. Quick Check:

    Mutex with priority inheritance = xSemaphoreCreateMutex() [OK]
Quick Trick: Mutex with priority inheritance uses xSemaphoreCreateMutex() [OK]
Common Mistakes:
  • Choosing xQueueCreate() for mutex
  • Confusing task creation with mutex creation
  • Using delay functions instead of mutex APIs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes