Bird
0
0

In FreeRTOS, what effect does calling vTaskDelay() have on the calling task?

easy📝 Conceptual Q1 of 15
FreeRTOS - Task Scheduling
In FreeRTOS, what effect does calling vTaskDelay() have on the calling task?
AIt immediately terminates the task.
BIt blocks the task for a specified number of tick periods, allowing other tasks to run.
CIt resets the task's priority to the highest level.
DIt suspends all other tasks except the calling task.
Step-by-Step Solution
Solution:
  1. Step 1: Understand vTaskDelay()

    vTaskDelay() places the calling task into the Blocked state for a specified number of tick periods.
  2. Step 2: Effect on Scheduler

    While blocked, the scheduler can run other ready tasks, improving multitasking.
  3. Final Answer:

    It blocks the task for a specified number of tick periods, allowing other tasks to run. -> Option B
  4. Quick Check:

    vTaskDelay blocks task, enabling others [OK]
Quick Trick: vTaskDelay blocks task for ticks, freeing CPU [OK]
Common Mistakes:
  • Thinking vTaskDelay terminates the task
  • Assuming it changes task priority
  • Believing it suspends other tasks

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes