SlideShare a Scribd company logo
4
Most read
5
Most read
7
Most read
FreeRTOS
Open source real-time operating software
What is a real-time operating system?
Real-time systems are designed to do something within a certain amount of time.
If it does something right, but not within this amount of time, it is a failure.
What is a real-time operating system?
Multitasking
Scheduler
Decides which task
has to run
Preemptive scheduling
The task that is running can be
interrupted by the scheduler
when a higher-priority task
needs to run.
Cooperative scheduling
The task decides when it has to
stop.
Preemptive scheduling is what we need for a real-time system.
Multitasking in FreeRTOS
Different possibilities for scheduling the tasks on FreeRTOS:
Round-Robin scheduling
- Every task has the same priority.
- Every task is given a fixed time to execute.
- When time is over, the current task is
preempted and the next ready task
executes.
Fixed Priority scheduling
- A priority level is given to every created
task.
- The highest priority task executes, but is
given a fixed time period.
- When time is over, the current task is
preempted and the next highest priority
ready task executes.
Tasks in FreeRTOS
In a multitasking environment, the tasks can have 4 different states:
Running
Ready
Blocked
Suspended
The task is using the processor and is executing its code.
The task is ready to be executed, and is waiting for the processor.
The task is waiting for a time-related event or an external event.
The task is not waiting for the processor.
Communication between tasks
In FreeRTOS, tasks use queues to send data to each other:
Message is placed in
the memory by the
emitting task.
Message is recovered
in the memory by the
receiving task.
We use binary semaphores to synchronize the communication:
Acts like a flag that is going to inform the receiving task that the
message is available.
Queue
Architecture of FreeRTOS
50%
40% 10%
FreeRTOS’s code
Tasks
Creating, scheduling and maintaining the
tasks
Hardware-dependent code
depends on the microcontroller you are
using
Communication
Between tasks
Around 9000 lines of code

More Related Content

PPTX
FreeRTOS
PPT
Free FreeRTOS Course-Task Management
PPTX
FreeRTOS basics (Real time Operating System)
PDF
Real Time Operating System Concepts
PDF
RTOS - Real Time Operating Systems
PPTX
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PDF
PART-3 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PPTX
Real Time Operating Systems
FreeRTOS
Free FreeRTOS Course-Task Management
FreeRTOS basics (Real time Operating System)
Real Time Operating System Concepts
RTOS - Real Time Operating Systems
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-3 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
Real Time Operating Systems

What's hot (20)

PPTX
FreeRTOS introduction
PPTX
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PDF
S emb t13-freertos
PDF
Vx works RTOS
PPT
Basic Linux Internals
PPT
FreeRTOS Course - Queue Management
PDF
Making Linux do Hard Real-time
PPT
PPTX
Free rtos seminar
PDF
Unit 4 Real Time Operating System
PDF
Session 6 sv_randomization
PPT
PPTX
Real Time OS For Embedded Systems
PDF
Linker and Loader Explained
PDF
Semaphores
PPT
Real Time Operating Systems
PPTX
Multithreading computer architecture
PDF
Cs8493 unit 2
PPTX
Concurrency with java
PPT
FreeRTOS Course - Semaphore/Mutex Management
FreeRTOS introduction
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
S emb t13-freertos
Vx works RTOS
Basic Linux Internals
FreeRTOS Course - Queue Management
Making Linux do Hard Real-time
Free rtos seminar
Unit 4 Real Time Operating System
Session 6 sv_randomization
Real Time OS For Embedded Systems
Linker and Loader Explained
Semaphores
Real Time Operating Systems
Multithreading computer architecture
Cs8493 unit 2
Concurrency with java
FreeRTOS Course - Semaphore/Mutex Management
Ad

Similar to FreeRTOS (20)

PDF
PPT
Rtos Concepts
PPTX
AABBCCDDOPERATING_SYSTEM_PARA_SUBIR.pptx
PDF
Rts assighment final
PDF
seminarembedded-150504150805-conversion-gate02.pdf
DOCX
What is operating system
DOCX
What is operating system
PDF
The Free RTOS kernel By Khaled AMIRAT
PDF
Lab3F22.pdf
PPTX
Rtos concepts
PPTX
Process concept
PPT
PDF
PDF
Operating system Interview Questions
PPTX
Real time system basic concept
PDF
PPT
Chapter 2 (Part 2)
PPTX
os ass.pptx
PDF
Process & Thread Management
PPT
Operating System.ppt
Rtos Concepts
AABBCCDDOPERATING_SYSTEM_PARA_SUBIR.pptx
Rts assighment final
seminarembedded-150504150805-conversion-gate02.pdf
What is operating system
What is operating system
The Free RTOS kernel By Khaled AMIRAT
Lab3F22.pdf
Rtos concepts
Process concept
Operating system Interview Questions
Real time system basic concept
Chapter 2 (Part 2)
os ass.pptx
Process & Thread Management
Operating System.ppt
Ad

Recently uploaded (20)

PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Introduction to Windows Operating System
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
chapter 5 systemdesign2008.pptx for cimputer science students
PPTX
assetexplorer- product-overview - presentation
PDF
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
DOCX
How to Use SharePoint as an ISO-Compliant Document Management System
PDF
How Tridens DevSecOps Ensures Compliance, Security, and Agility
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
DNT Brochure 2025 – ISV Solutions @ D365
PPTX
GSA Content Generator Crack (2025 Latest)
PDF
Topaz Photo AI Crack New Download (Latest 2025)
PDF
Cost to Outsource Software Development in 2025
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
Time Tracking Features That Teams and Organizations Actually Need
wealthsignaloriginal-com-DS-text-... (1).pdf
Introduction to Windows Operating System
Digital Systems & Binary Numbers (comprehensive )
chapter 5 systemdesign2008.pptx for cimputer science students
assetexplorer- product-overview - presentation
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
How to Use SharePoint as an ISO-Compliant Document Management System
How Tridens DevSecOps Ensures Compliance, Security, and Agility
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
Monitoring Stack: Grafana, Loki & Promtail
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
DNT Brochure 2025 – ISV Solutions @ D365
GSA Content Generator Crack (2025 Latest)
Topaz Photo AI Crack New Download (Latest 2025)
Cost to Outsource Software Development in 2025
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
Time Tracking Features That Teams and Organizations Actually Need

FreeRTOS

  • 1. FreeRTOS Open source real-time operating software
  • 2. What is a real-time operating system? Real-time systems are designed to do something within a certain amount of time. If it does something right, but not within this amount of time, it is a failure.
  • 3. What is a real-time operating system? Multitasking Scheduler Decides which task has to run Preemptive scheduling The task that is running can be interrupted by the scheduler when a higher-priority task needs to run. Cooperative scheduling The task decides when it has to stop. Preemptive scheduling is what we need for a real-time system.
  • 4. Multitasking in FreeRTOS Different possibilities for scheduling the tasks on FreeRTOS: Round-Robin scheduling - Every task has the same priority. - Every task is given a fixed time to execute. - When time is over, the current task is preempted and the next ready task executes. Fixed Priority scheduling - A priority level is given to every created task. - The highest priority task executes, but is given a fixed time period. - When time is over, the current task is preempted and the next highest priority ready task executes.
  • 5. Tasks in FreeRTOS In a multitasking environment, the tasks can have 4 different states: Running Ready Blocked Suspended The task is using the processor and is executing its code. The task is ready to be executed, and is waiting for the processor. The task is waiting for a time-related event or an external event. The task is not waiting for the processor.
  • 6. Communication between tasks In FreeRTOS, tasks use queues to send data to each other: Message is placed in the memory by the emitting task. Message is recovered in the memory by the receiving task. We use binary semaphores to synchronize the communication: Acts like a flag that is going to inform the receiving task that the message is available. Queue
  • 7. Architecture of FreeRTOS 50% 40% 10% FreeRTOS’s code Tasks Creating, scheduling and maintaining the tasks Hardware-dependent code depends on the microcontroller you are using Communication Between tasks Around 9000 lines of code