Bird
0
0

How can you modify a watchdog task to handle a monitored task that sometimes takes longer than usual but is still healthy?

hard📝 Application Q9 of 15
FreeRTOS - Design Patterns for RTOS
How can you modify a watchdog task to handle a monitored task that sometimes takes longer than usual but is still healthy?
AIncrease the notification wait timeout to accommodate longer task execution
BIgnore notifications from that task
CDecrease the watchdog timer period
DRemove the watchdog task entirely
Step-by-Step Solution
Solution:
  1. Step 1: Identify problem with timing

    If a task sometimes runs longer, the watchdog may falsely detect a failure.
  2. Step 2: Adjust timeout to prevent false resets

    Increasing the wait timeout allows the task more time to send notifications.
  3. Final Answer:

    Increase the notification wait timeout to accommodate longer task execution -> Option A
  4. Quick Check:

    Longer timeout prevents false watchdog triggers [OK]
Quick Trick: Adjust timeout to match task execution time [OK]
Common Mistakes:
  • Ignoring notifications
  • Shortening timer causing resets
  • Removing watchdog task

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes