Bird
0
0

What is the primary purpose of the vTaskList() function in FreeRTOS?

easy📝 Conceptual Q11 of 15
FreeRTOS - Debugging and Monitoring
What is the primary purpose of the vTaskList() function in FreeRTOS?
ATo suspend all tasks temporarily
BTo display a list of all running tasks and their current status
CTo delete a task from the scheduler
DTo create a new task with specific priority
Step-by-Step Solution
Solution:
  1. Step 1: Understand the function's role

    vTaskList() is designed to provide a snapshot of all tasks currently managed by FreeRTOS.
  2. Step 2: Identify what it outputs

    The function outputs a formatted string showing each task's name, state, priority, stack usage, and task number.
  3. Final Answer:

    To display a list of all running tasks and their current status -> Option B
  4. Quick Check:

    vTaskList() = task status display [OK]
Quick Trick: Remember: vTaskList() shows task info, not task control [OK]
Common Mistakes:
  • Confusing vTaskList() with task creation functions
  • Thinking it suspends or deletes tasks
  • Assuming it returns a value instead of writing to a buffer

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes