Recall & Review
beginner
What is task starvation in FreeRTOS?
Task starvation happens when a low-priority task never gets CPU time because higher-priority tasks keep running. It means the low-priority task is 'starved' of processing time.
Click to reveal answer
intermediate
Explain priority inversion in FreeRTOS.
Priority inversion occurs when a high-priority task waits for a resource held by a low-priority task, but a medium-priority task keeps running and blocks the low-priority task from releasing the resource.
Click to reveal answer
intermediate
How does FreeRTOS help prevent priority inversion?
FreeRTOS uses priority inheritance. When a low-priority task holds a resource needed by a high-priority task, it temporarily inherits the higher priority to finish quickly and release the resource.
Click to reveal answer
beginner
What is a real-life example of task starvation?
Imagine a busy cashier (high priority) always serving customers, so the cleaner (low priority) never gets a chance to clean the floor. The cleaner is starved of time.
Click to reveal answer
beginner
Why is task starvation a problem in real-time systems?
Because some tasks may never run, causing missed deadlines or system failures. Real-time systems need all tasks to run on time to work correctly.
Click to reveal answer
What causes task starvation in FreeRTOS?
✗ Incorrect
Task starvation happens when high-priority tasks keep running and prevent low-priority tasks from executing.
What is priority inversion?
✗ Incorrect
Priority inversion is when a low-priority task holds a resource needed by a high-priority task, causing the high-priority task to wait.
How does FreeRTOS solve priority inversion?
✗ Incorrect
FreeRTOS uses priority inheritance to temporarily raise the priority of the low-priority task holding the resource.
Which of these is a symptom of task starvation?
✗ Incorrect
Task starvation means some tasks never get CPU time because others keep running.
Why is priority inversion dangerous in real-time systems?
✗ Incorrect
Priority inversion can delay high-priority tasks, causing them to miss critical deadlines.
Describe task starvation and how it affects system behavior in FreeRTOS.
Think about what happens when some tasks never get CPU time.
You got /3 concepts.
Explain priority inversion and how FreeRTOS uses priority inheritance to solve it.
Consider how a low-priority task can block a high-priority task.
You got /3 concepts.