Bird
0
0

You need to design a health monitoring system in FreeRTOS that checks multiple tasks every 2 seconds and triggers a system reset if any task is unresponsive. Which method is most effective?

hard📝 Workflow Q8 of 15
FreeRTOS - Design Patterns for RTOS
You need to design a health monitoring system in FreeRTOS that checks multiple tasks every 2 seconds and triggers a system reset if any task is unresponsive. Which method is most effective?
AUse a dedicated watchdog task that polls task status flags and calls NVIC_SystemReset() on failure
BCreate multiple heartbeat tasks, each resetting the system independently
CRely on task priorities to automatically recover unresponsive tasks
DUse vTaskDelay(2000) in each task to self-monitor and reset the system
Step-by-Step Solution
Solution:
  1. Step 1: Understand monitoring requirements

    Centralized monitoring simplifies detection of unresponsive tasks.
  2. Step 2: Evaluate options

    A watchdog task polling status flags can trigger a system reset reliably.
  3. Final Answer:

    Use a dedicated watchdog task that polls task status flags and calls NVIC_SystemReset() on failure -> Option A
  4. Quick Check:

    Central watchdog task ensures coordinated resets [OK]
Quick Trick: Central watchdog task polls and resets system [OK]
Common Mistakes:
  • Using multiple independent heartbeat tasks for reset
  • Assuming task priorities fix unresponsiveness
  • Expecting tasks to self-reset reliably

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes