Bird
0
0

Which of the following is the correct syntax to get the stack high water mark of the current task?

easy📝 Syntax Q3 of 15
FreeRTOS - Debugging and Monitoring

Which of the following is the correct syntax to get the stack high water mark of the current task?

AuxTaskGetStackHighWaterMark(NULL);
BuxTaskGetStackHighWaterMark(currentTask);
CvTaskGetStackHighWaterMark();
DxTaskGetStackHighWaterMark(NULL);
Step-by-Step Solution
Solution:
  1. Step 1: Understand parameter for current task

    Passing NULL to uxTaskGetStackHighWaterMark() returns the high water mark of the current task.
  2. Step 2: Check function name and parameters

    Only uxTaskGetStackHighWaterMark() with NULL is correct syntax; others are invalid or incorrect.
  3. Final Answer:

    uxTaskGetStackHighWaterMark(NULL); -> Option A
  4. Quick Check:

    Current task high water mark = uxTaskGetStackHighWaterMark(NULL) [OK]
Quick Trick: Use NULL to refer to current task in FreeRTOS APIs [OK]
Common Mistakes:
  • Using wrong function names
  • Passing invalid task handles
  • Omitting required parameters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes