Bird
0
0

In the ulTaskNotifyTake() function, which argument controls whether the notification value is reset after the function returns?

easy📝 Conceptual Q2 of 15
FreeRTOS - Task Notifications
In the ulTaskNotifyTake() function, which argument controls whether the notification value is reset after the function returns?
AThe <code>xTicksToWait</code> parameter
BThe <code>xClearCountOnExit</code> parameter
CThe task handle parameter
DThe notification value parameter
Step-by-Step Solution
Solution:
  1. Step 1: Identify parameters of ulTaskNotifyTake()

    The function takes two parameters: xClearCountOnExit and xTicksToWait.
  2. Step 2: Understand xClearCountOnExit

    This parameter determines if the notification count is cleared (reset to zero) when the function returns.
  3. Step 3: Confirm other parameters

    xTicksToWait controls the wait time, not clearing behavior.
  4. Final Answer:

    The xClearCountOnExit parameter -> Option B
  5. Quick Check:

    Parameter controlling count reset is xClearCountOnExit [OK]
Quick Trick: Clear count controlled by xClearCountOnExit parameter [OK]
Common Mistakes:
  • Confusing wait time parameter with count clearing
  • Assuming notification value parameter exists
  • Thinking task handle is a parameter here

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes