Bird
0
0

In FreeRTOS, what does the stack size allocated to a task primarily affect?

easy📝 Conceptual Q1 of 15
FreeRTOS - Task Creation and Management
In FreeRTOS, what does the stack size allocated to a task primarily affect?
AThe priority level of the task
BThe amount of memory reserved for the task's local variables and function calls
CThe CPU time the task will receive
DThe number of tasks that can run simultaneously
Step-by-Step Solution
Solution:
  1. Step 1: Understand stack size role in FreeRTOS

    The stack size defines how much memory is reserved for the task's local variables and function calls.
  2. Step 2: Differentiate from other task parameters

    Priority controls scheduling, CPU time depends on scheduler, and number of tasks is unrelated to stack size.
  3. Final Answer:

    The amount of memory reserved for the task's local variables and function calls -> Option B
  4. Quick Check:

    Stack size = Memory reserved for task stack [OK]
Quick Trick: Stack size means memory for task's local data and calls [OK]
Common Mistakes:
  • Confusing stack size with task priority
  • Thinking stack size controls CPU time
  • Assuming stack size limits number of tasks

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes