Bird
0
0

You have three tasks: SensorRead (priority 4), DataProcess (priority 3), and Logger (priority 2). SensorRead must never be delayed. How should you assign priorities to ensure this?

hard📝 Application Q8 of 15
FreeRTOS - Task Priorities
You have three tasks: SensorRead (priority 4), DataProcess (priority 3), and Logger (priority 2). SensorRead must never be delayed. How should you assign priorities to ensure this?
ASet DataProcess highest to process data quickly
BAssign all tasks the same priority for fairness
CKeep SensorRead highest, DataProcess medium, Logger lowest
DMake Logger highest priority to log all data first
Step-by-Step Solution
Solution:
  1. Step 1: Identify critical task

    SensorRead must never be delayed, so it needs highest priority.
  2. Step 2: Assign priorities accordingly

    SensorRead gets priority 4 (highest), DataProcess 3, Logger 2 to maintain order.
  3. Final Answer:

    Keep SensorRead highest, DataProcess medium, Logger lowest -> Option C
  4. Quick Check:

    Critical task highest priority = SensorRead priority 4 [OK]
Quick Trick: Critical tasks get highest priority to avoid delays [OK]
Common Mistakes:
  • Giving equal priority to all tasks
  • Assigning lower priority to critical tasks
  • Prioritizing logging over sensor reading

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes