Bird
0
0

How can you ensure a low priority task runs regularly even when high priority tasks are active in FreeRTOS?

hard📝 Application Q9 of 15
FreeRTOS - Task Creation and Management
How can you ensure a low priority task runs regularly even when high priority tasks are active in FreeRTOS?
AIncrease the low priority task's stack size
BUse vTaskDelay or vTaskDelayUntil in the low priority task
CAssign the low priority task a higher priority temporarily
DDisable preemption in the scheduler
Step-by-Step Solution
Solution:
  1. Step 1: Understand task blocking

    Using vTaskDelay or vTaskDelayUntil makes a task block and yield CPU.
  2. Step 2: Analyze effect on low priority task

    This allows high priority tasks to run but ensures low priority task runs periodically.
  3. Final Answer:

    Use vTaskDelay or vTaskDelayUntil in the low priority task -> Option B
  4. Quick Check:

    Delays enable periodic execution despite priorities [OK]
Quick Trick: Delays let low priority tasks run regularly [OK]
Common Mistakes:
  • Thinking stack size affects scheduling
  • Temporarily raising priority is complex and error-prone
  • Disabling preemption stops multitasking

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes