Bird
0
0

Which FreeRTOS function is commonly used by a watchdog task to check if other tasks are alive?

easy📝 Conceptual Q2 of 15
FreeRTOS - Design Patterns for RTOS
Which FreeRTOS function is commonly used by a watchdog task to check if other tasks are alive?
AxSemaphoreTake()
BvTaskDelay()
CxTaskNotifyWait()
DxQueueSend()
Step-by-Step Solution
Solution:
  1. Step 1: Identify communication method for watchdog

    Watchdog tasks often wait for notifications from other tasks to confirm they are alive.
  2. Step 2: Match function to notification wait

    xTaskNotifyWait() waits for task notifications, making it suitable for watchdog checks.
  3. Final Answer:

    xTaskNotifyWait() -> Option C
  4. Quick Check:

    Watchdog waits for notifications = xTaskNotifyWait() [OK]
Quick Trick: Watchdog waits for task signals using xTaskNotifyWait() [OK]
Common Mistakes:
  • Using delay instead of notification wait
  • Confusing queue send with notification
  • Using semaphore take incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes