Bird
0
0

How should you assign priorities to ensure the most important task runs first and the least important runs last?Choose the best priority assignment:A: Task1=1, Task2=3, Task3=3B: Task1=3, Task2=3, Task3=1C: Task1=3, Task2=1, Task3=3D: Task1=1, Task2=1, Task3=3

hard📝 Application Q15 of 15
FreeRTOS - Task Creation and Management

You have three tasks with priorities 1, 3, and 3. How should you assign priorities to ensure the most important task runs first and the least important runs last?

Choose the best priority assignment:

  • A: Task1=1, Task2=3, Task3=3
  • B: Task1=3, Task2=3, Task3=1
  • C: Task1=3, Task2=1, Task3=3
  • D: Task1=1, Task2=1, Task3=3
ATask1=1 (lowest), Task2=3, Task3=3 (highest)
BTask1=3 (highest), Task2=3, Task3=1 (lowest)
CTask1=3 (highest), Task2=1, Task3=3 (highest)
DTask1=1, Task2=1, Task3=3 (highest)
Step-by-Step Solution
Solution:
  1. Step 1: Identify importance order

    The most important task should have highest priority (3), least important lowest (1).
  2. Step 2: Match priorities to tasks

    Task1=3 (highest), Task2=3, Task3=1 (lowest) assigns highest priority (3) to Task1 and Task2, and lowest (1) to Task3, ensuring important tasks run first.
  3. Final Answer:

    Task1=3 (highest), Task2=3, Task3=1 (lowest) -> Option B
  4. Quick Check:

    Highest priority = most important task [OK]
Quick Trick: Assign highest number to most important task [OK]
Common Mistakes:
  • Assigning same priority to all tasks
  • Giving lowest priority to important tasks
  • Ignoring task importance order

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes