Bird
0
0

What is the expected behavior of a task waiting on a notification after an ISR calls xTaskNotifyFromISR with eSetBits action?

medium📝 Predict Output Q5 of 15
FreeRTOS - Interrupt Management
What is the expected behavior of a task waiting on a notification after an ISR calls xTaskNotifyFromISR with eSetBits action?
AThe task crashes due to invalid notification action
BThe task ignores the notification and continues running
CThe task's notification value bits are set and it unblocks if waiting for those bits
DThe notification resets the task's notification value to zero
Step-by-Step Solution
Solution:
  1. Step 1: Understand eSetBits action

    eSetBits sets bits in the task's notification value without clearing others.
  2. Step 2: Task waiting behavior

    If the task waits for those bits, it unblocks when bits are set.
  3. Final Answer:

    The task's notification value bits are set and it unblocks if waiting for those bits -> Option C
  4. Quick Check:

    eSetBits sets bits and unblocks waiting task [OK]
Quick Trick: eSetBits sets bits, unblocking waiting tasks [OK]
Common Mistakes:
  • Assuming notification is ignored
  • Thinking notification resets value to zero
  • Believing task crashes on notification

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes