Bird
0
0

You want to design a FreeRTOS system where a high-priority task waits for data from a low-priority task without wasting CPU time. Which FreeRTOS feature best supports this design?

hard📝 Application Q15 of 15
FreeRTOS - RTOS Fundamentals
You want to design a FreeRTOS system where a high-priority task waits for data from a low-priority task without wasting CPU time. Which FreeRTOS feature best supports this design?
ARunning both tasks at the same priority to share CPU equally
BUsing vTaskDelay in the high-priority task to wait
CUsing global variables with busy-wait loops
DUsing a queue to send data and block the high-priority task until data arrives
Step-by-Step Solution
Solution:
  1. Step 1: Understand task synchronization needs

    The high-priority task must wait efficiently without wasting CPU cycles.
  2. Step 2: Evaluate FreeRTOS features

    Queues allow blocking the high-priority task until data is available, avoiding busy-waiting.
  3. Step 3: Rule out other options

    vTaskDelay wastes time, busy-wait loops waste CPU, equal priority doesn't guarantee waiting.
  4. Final Answer:

    Using a queue to send data and block the high-priority task until data arrives -> Option D
  5. Quick Check:

    Queue blocks task efficiently = Using a queue to send data and block the high-priority task until data arrives [OK]
Quick Trick: Use queues to block and wait without CPU waste [OK]
Common Mistakes:
  • Using delays instead of blocking
  • Busy-waiting wastes CPU
  • Ignoring priority differences

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes