0
0
FreeRTOSprogramming~5 mins

Task states (Ready, Running, Blocked, Suspended) in FreeRTOS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the Ready state mean for a FreeRTOS task?
The Ready state means the task is prepared to run but is waiting for the CPU to become available. It is not blocked or suspended.
Click to reveal answer
beginner
Describe the Running state in FreeRTOS.
The Running state means the task is currently executing on the CPU.
Click to reveal answer
beginner
What causes a task to enter the Blocked state?
A task enters the Blocked state when it is waiting for an event, such as a delay to finish or a resource to become available.
Click to reveal answer
intermediate
Explain the Suspended state in FreeRTOS.
A Suspended task is one that has been stopped by the programmer and will not run until explicitly resumed.
Click to reveal answer
intermediate
How does FreeRTOS decide which task moves from Ready to Running?
FreeRTOS uses a scheduler that selects the highest priority task in the Ready state to run next on the CPU.
Click to reveal answer
Which FreeRTOS task state means the task is waiting for a resource or event?
ABlocked
BReady
CRunning
DSuspended
What state is a task in when it is actively using the CPU?
AReady
BBlocked
CRunning
DSuspended
Which state means a task will not run until resumed by the programmer?
AReady
BSuspended
CBlocked
DRunning
What determines which Ready task becomes Running in FreeRTOS?
ATask priority
BTask creation order
CRandom selection
DTask name alphabetical order
If a task is waiting for a timer to expire, what state is it in?
ARunning
BSuspended
CReady
DBlocked
Explain the four main FreeRTOS task states and give a simple example of when a task might be in each state.
Think about what the task is doing or waiting for in each state.
You got /4 concepts.
    How does FreeRTOS decide which task to run next from the Ready state?
    Focus on the role of the scheduler and priorities.
    You got /3 concepts.