Bird
0
0

Which FreeRTOS function is best to use inside a heartbeat task to wait without blocking other tasks?

easy📝 Syntax Q12 of 15
FreeRTOS - Design Patterns for RTOS
Which FreeRTOS function is best to use inside a heartbeat task to wait without blocking other tasks?
AvTaskResume()
BvTaskSuspend()
CvTaskDelete()
DvTaskDelay()
Step-by-Step Solution
Solution:
  1. Step 1: Identify delay function for non-blocking wait

    vTaskDelay() suspends the task for a time, allowing others to run.
  2. Step 2: Understand other functions

    vTaskSuspend() pauses a task indefinitely, vTaskDelete() removes it, and vTaskResume() restarts a suspended task.
  3. Final Answer:

    vTaskDelay() -> Option D
  4. Quick Check:

    Use vTaskDelay() for timed waits [OK]
Quick Trick: Use vTaskDelay() to wait without blocking [OK]
Common Mistakes:
  • Using vTaskSuspend() which blocks indefinitely
  • Confusing vTaskDelete() with delay
  • Trying vTaskResume() to wait

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes