Bird
0
0

Which parameter does vTaskPrioritySet() require to change a task's priority?

easy📝 Conceptual Q2 of 15
FreeRTOS - Task Priorities

Which parameter does vTaskPrioritySet() require to change a task's priority?

ATask name and stack size
BTask ID and delay time
CTask function pointer and priority
DTask handle and new priority value
Step-by-Step Solution
Solution:
  1. Step 1: Identify parameters of vTaskPrioritySet()

    The function takes a task handle to identify the task and a new priority value to assign.
  2. Step 2: Eliminate incorrect parameters

    Task name, stack size, function pointer, or delay time are not parameters for changing priority.
  3. Final Answer:

    Task handle and new priority value -> Option D
  4. Quick Check:

    Parameters needed = Task handle + priority [OK]
Quick Trick: vTaskPrioritySet needs task handle and priority [OK]
Common Mistakes:
  • Passing task name instead of handle
  • Confusing function pointer with task handle
  • Using delay time as parameter

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes