Bird
0
0

You have three tasks: SensorRead (must respond fast), DataLogging (less urgent), and UIUpdate (medium urgency). How should you assign priorities?

hard📝 Application Q15 of 15
FreeRTOS - Task Priorities
You have three tasks: SensorRead (must respond fast), DataLogging (less urgent), and UIUpdate (medium urgency). How should you assign priorities?
ADataLogging=3, UIUpdate=2, SensorRead=1
BSensorRead=3, UIUpdate=2, DataLogging=1
CUIUpdate=3, SensorRead=2, DataLogging=1
DAll tasks priority 1
Step-by-Step Solution
Solution:
  1. Step 1: Identify task urgency

    SensorRead must respond fastest, so highest priority. UIUpdate is medium, DataLogging less urgent.
  2. Step 2: Assign priorities accordingly

    Assign SensorRead=3 (highest), UIUpdate=2, DataLogging=1 (lowest).
  3. Final Answer:

    SensorRead=3, UIUpdate=2, DataLogging=1 -> Option B
  4. Quick Check:

    Fastest task gets highest priority [OK]
Quick Trick: Fastest task gets highest priority [OK]
Common Mistakes:
  • Giving low priority to fastest task
  • Assigning same priority to all
  • Reversing urgency order

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes