Bird
0
0

Which argument must be passed to uxTaskPriorityGet() to obtain the priority of a specific task?

easy📝 Conceptual Q2 of 15
FreeRTOS - Task Priorities

Which argument must be passed to uxTaskPriorityGet() to obtain the priority of a specific task?

ANo argument is required
BThe task's name as a string
CThe task's priority value
DA valid <code>TaskHandle_t</code> identifying the task
Step-by-Step Solution
Solution:
  1. Step 1: Check function signature

    uxTaskPriorityGet() requires a task handle to identify which task's priority to return.
  2. Step 2: Eliminate incorrect options

    Task name or priority value are not valid parameters; the function does not accept zero arguments.
  3. Final Answer:

    A valid TaskHandle_t identifying the task -> Option D
  4. Quick Check:

    TaskHandle_t uniquely identifies tasks [OK]
Quick Trick: Pass TaskHandle_t to get priority [OK]
Common Mistakes:
  • Passing task name string instead of handle
  • Calling without any parameter

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes