Bird
0
0

Why do task notifications in FreeRTOS generally outperform queues in terms of CPU usage and latency?

hard📝 Conceptual Q10 of 15
FreeRTOS - Task Notifications
Why do task notifications in FreeRTOS generally outperform queues in terms of CPU usage and latency?
ABecause task notifications use interrupt-driven DMA transfers
BBecause task notifications avoid data copying and use direct task control block updates
CBecause queues use hardware timers causing delays
DBecause queues require context switches for every operation
Step-by-Step Solution
Solution:
  1. Step 1: Analyze task notification internals

    Task notifications update a 32-bit value in the task control block directly, avoiding data copying.
  2. Step 2: Understand queue overhead

    Queues copy data into buffers and manage pointers, adding CPU overhead and latency.
  3. Step 3: Evaluate distractors

    DMA and hardware timers are unrelated; context switches happen in both but are not the main difference.
  4. Final Answer:

    Task notifications avoid data copying and use direct task control block updates. -> Option B
  5. Quick Check:

    CPU and latency efficiency = Direct updates [OK]
Quick Trick: Task notifications update task control block directly, no copying [OK]
Common Mistakes:
  • Thinking DMA or hardware timers are involved
  • Assuming queues cause more context switches
  • Confusing task notifications with event groups

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes