Bird
0
0

Which of the following is the correct way to enable preemptive scheduling in FreeRTOS configuration?

easy📝 Syntax Q12 of 15
FreeRTOS - Task Scheduling
Which of the following is the correct way to enable preemptive scheduling in FreeRTOS configuration?
A#define configUSE_PREEMPTION 1
B#define configENABLE_PREEMPTION true
C#define configPREEMPTIVE_SCHEDULING 1
D#define configUSE_PREEMPTION 0
Step-by-Step Solution
Solution:
  1. Step 1: Recall FreeRTOS config option for preemption

    The correct macro to enable preemption is configUSE_PREEMPTION.
  2. Step 2: Identify correct value to enable preemption

    Setting configUSE_PREEMPTION to 1 enables preemptive scheduling.
  3. Final Answer:

    #define configUSE_PREEMPTION 1 -> Option A
  4. Quick Check:

    configUSE_PREEMPTION = 1 enables preemption [OK]
Quick Trick: Enable preemption by setting configUSE_PREEMPTION to 1 [OK]
Common Mistakes:
  • Using 0 instead of 1 to enable preemption
  • Using wrong macro names
  • Using boolean true instead of 1

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes