Bird
0
0

Given three tasks with priorities: Task1=2, Task2=4, Task3=3. If all tasks are ready, which task will FreeRTOS run first?

medium📝 Predict Output Q4 of 15
FreeRTOS - Task Priorities
Given three tasks with priorities: Task1=2, Task2=4, Task3=3. If all tasks are ready, which task will FreeRTOS run first?
ATask1
BTask2
CTask3
DIt will run tasks in creation order
Step-by-Step Solution
Solution:
  1. Step 1: Understand priority values

    Higher numeric priority means higher importance in FreeRTOS.
  2. Step 2: Compare given priorities

    Task2 has priority 4, which is higher than Task3's 3 and Task1's 2.
  3. Final Answer:

    Task2 -> Option B
  4. Quick Check:

    Highest priority task runs first = Task2 [OK]
Quick Trick: Highest priority number runs first when ready [OK]
Common Mistakes:
  • Assuming lower number means higher priority
  • Thinking tasks run in creation order
  • Ignoring priority when multiple tasks are ready

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes