Bird
0
0

How can you combine task notifications and event groups to implement a robust graceful shutdown sequence?

hard📝 Application Q9 of 15
FreeRTOS - Design Patterns for RTOS
How can you combine task notifications and event groups to implement a robust graceful shutdown sequence?
AUse task notifications to signal shutdown and event groups to track task completions
BUse event groups to signal shutdown and task notifications to delete tasks
CUse task notifications only for both signaling and tracking
DUse event groups only for signaling shutdown
Step-by-Step Solution
Solution:
  1. Step 1: Understand roles of notifications and event groups

    Task notifications are efficient for signaling; event groups can track multiple task states.
  2. Step 2: Match roles to shutdown needs

    Signal shutdown via notifications; track which tasks completed via event groups.
  3. Final Answer:

    Use task notifications to signal shutdown and event groups to track task completions -> Option A
  4. Quick Check:

    Notifications signal, event groups track completions [OK]
Quick Trick: Combine notifications and event groups for signaling and tracking [OK]
Common Mistakes:
  • Using event groups for deletion
  • Relying on one mechanism for all tasks
  • Ignoring tracking task completions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes