Recall & Review
beginner
What is the main purpose of the FreeRTOS kernel?
The FreeRTOS kernel manages tasks, schedules them, and handles context switching to allow multiple tasks to run seemingly at the same time on a microcontroller.
Click to reveal answer
beginner
What are tasks in FreeRTOS?
Tasks are independent pieces of code that run concurrently. Each task has its own stack and priority, and the kernel switches between them to share CPU time.
Click to reveal answer
intermediate
Explain the role of the scheduler in FreeRTOS.
The scheduler decides which task runs next based on priority and state. It performs context switching to pause one task and start or resume another.
Click to reveal answer
intermediate
What are queues used for in FreeRTOS?
Queues are used to safely send data between tasks or between interrupts and tasks, helping tasks communicate and synchronize without conflicts.
Click to reveal answer
advanced
Describe the difference between preemptive and cooperative scheduling in FreeRTOS.
Preemptive scheduling allows the kernel to interrupt a running task to switch to a higher priority task. Cooperative scheduling requires tasks to yield control voluntarily.
Click to reveal answer
What component in FreeRTOS manages which task runs at a given time?
✗ Incorrect
The scheduler manages task execution order and timing.
In FreeRTOS, what is a task's stack used for?
✗ Incorrect
Each task has its own stack to keep track of its function calls and local variables.
Which FreeRTOS feature allows safe data exchange between tasks?
✗ Incorrect
Queues provide a safe way for tasks to send and receive data.
What happens in preemptive scheduling when a higher priority task becomes ready?
✗ Incorrect
Preemptive scheduling allows immediate switch to higher priority tasks.
Which of these is NOT a FreeRTOS kernel object?
✗ Incorrect
Database is not part of FreeRTOS kernel objects.
Describe the main components of FreeRTOS architecture and their roles.
Think about how tasks run and communicate.
You got /5 concepts.
Explain how FreeRTOS handles multiple tasks running on a single CPU.
Consider how the CPU switches between tasks.
You got /4 concepts.