0% found this document useful (0 votes)
7 views38 pages

RTOS Fundamentals

The document outlines the fundamentals of Real-Time Operating Systems (RTOS), focusing on task management through the RTOS scheduler, which utilizes time slicing and task states including ready, running, and blocked. It also discusses memory management techniques such as static, stack, and heap allocation. Two use cases are presented: a blinking LED and a UART echo, both implemented on a single-core system.

Uploaded by

EL ABBASSI ANAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views38 pages

RTOS Fundamentals

The document outlines the fundamentals of Real-Time Operating Systems (RTOS), focusing on task management through the RTOS scheduler, which utilizes time slicing and task states including ready, running, and blocked. It also discusses memory management techniques such as static, stack, and heap allocation. Two use cases are presented: a blinking LED and a UART echo, both implemented on a single-core system.

Uploaded by

EL ABBASSI ANAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 38

RTOS Fundamentals

Real_Time_Operating_System
RTOS Scheduler
How the RTOS Scheduler Manages Task Execution ?
Time slicing : Ticks
B B
B B
Threads : Tasks
Task State
Ready State: When tasks are created, they enter the
ready state, indicating they are prepared to run
whenever the CPU is available.
- Running State: When a task is given CPU time, it enters the running state, but only one task can be
in this state at a time on a single-core system.
- Blocked State: Tasks can enter this state when waiting for specific events, like a timer delay using
vtaskdelay() or a semaphore. This task can’t be scheduled to run until the event is resolved and the
state is on ready.
Memory Allocation
Memory Management in RTOS: Static, Stack, Heap
Use Case 1 : Blinking LED
1 Task, Single core
See code
Use Case 2 : Receive UART & Echo
2 Tasks, Single core
Thank You

You might also like