Bird
0
0

Why does FreeRTOS require task functions to have the signature void Task(void *pvParameters)?

hard📝 Conceptual Q10 of 15
FreeRTOS - Task Creation and Management
Why does FreeRTOS require task functions to have the signature void Task(void *pvParameters)?
ATo allow passing any type of data via a generic pointer
BTo enforce tasks return status codes
CTo restrict tasks to no parameters
DTo ensure tasks run in kernel mode
Step-by-Step Solution
Solution:
  1. Step 1: Understand design goal

    Using void pointer parameter allows passing any data type to tasks flexibly.
  2. Step 2: Eliminate other options

    Tasks do not return status codes, do accept parameters, and user/kernel mode is unrelated to signature.
  3. Final Answer:

    To allow passing any type of data via a generic pointer -> Option A
  4. Quick Check:

    Generic void* parameter enables flexible data passing [OK]
Quick Trick: void* parameter allows any data type to be passed [OK]
Common Mistakes:
  • Thinking tasks must return status
  • Believing tasks have no parameters
  • Confusing signature with privilege level

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes