Bird
0
0

Which FreeRTOS API parameter sets the priority when creating a task?

easy📝 Conceptual Q2 of 15
FreeRTOS - Task Creation and Management

Which FreeRTOS API parameter sets the priority when creating a task?

AxTaskHandle
BusStackDepth
CpvParameters
DuxPriority
Step-by-Step Solution
Solution:
  1. Step 1: Identify task creation parameters

    FreeRTOS task creation uses xTaskCreate() with parameters including stack size, priority, and handle.
  2. Step 2: Find which parameter sets priority

    The parameter named uxPriority is used to assign the task's priority level.
  3. Final Answer:

    uxPriority -> Option D
  4. Quick Check:

    Priority parameter = uxPriority [OK]
Quick Trick: Priority is set by uxPriority in xTaskCreate() [OK]
Common Mistakes:
  • Confusing stack size with priority
  • Using task handle as priority
  • Passing parameters pointer as priority

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes