Bird
0
0

Which FreeRTOS API call correctly creates a task?

easy📝 Syntax Q12 of 15
FreeRTOS - Debugging and Monitoring
Which FreeRTOS API call correctly creates a task?
AxTaskCreate(TaskFunction, "Task1", 1000, NULL, 2, NULL);
BvTaskCreate(TaskFunction, "Task1", 1000, NULL, 2, NULL);
CxTaskCreate(TaskFunction, 1000, "Task1", NULL, 2, NULL);
DxTaskCreate(TaskFunction, "Task1", NULL, 1000, 2, NULL);
Step-by-Step Solution
Solution:
  1. Step 1: Recall FreeRTOS task creation syntax

    The correct syntax is xTaskCreate(TaskFunction, "Name", stackSize, parameters, priority, taskHandle).
  2. Step 2: Match options with correct parameter order

    xTaskCreate(TaskFunction, "Task1", 1000, NULL, 2, NULL); matches the correct order and types.
  3. Final Answer:

    xTaskCreate(TaskFunction, "Task1", 1000, NULL, 2, NULL); -> Option A
  4. Quick Check:

    Correct API call = xTaskCreate(TaskFunction, "Task1", 1000, NULL, 2, NULL); [OK]
Quick Trick: xTaskCreate returns status; remember parameter order [OK]
Common Mistakes:
  • Mixing up parameter order
  • Using void return type function instead of xTaskCreate
  • Passing NULL for stack size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes