SlideShare a Scribd company logo
1 of 15
By:- Sagar Chaturvedi
 Systems following timing constraints
 both correctness of computational logic and delivery time
matter
 3 types :-
 hard real time
 firm real time
 soft real time
 UNDER DEVELOPMENT AT DIAMP
 ADD A RT KERNEL BELOW LINUX KERNEL
 ADDS FEATURES OF RTOS TO LINUX
 MAKES LINUX KERNEL FULLY PRE-EMPTABLE
 LINUX IS A BACKGROUND TASK FOR RTAI
 HELPS LINUX TO FULFILL SOME REAL TIME
CONSTRAINTS
 HARDWARE ABSTRACTION LAYER(HAL)
 INTERPROCESS COMMUNICATION(IPC)
 POSIX THREADS
 INTERRUPT DISPATCHER
 SCHEDULER
 MEMORY MANAGEMENT
 DEFINES AN INTERFACE BETWEEN LINUX & RTAI
 A STRUCTURE INSTALLED IN LINUX KERNEL
 EXPORTS LINUX DATA & FUNCTIONS RELATED TO H/W TO
RTAI
 THIS ALLOWS RTAI TASKS TO RUN PARALLEL WITH
LINUX PROCESSES
 MAKES CHANGES IN OPERATIONS EASIER
 DISTRIBUTES CPU TO TASKS , ON SYSTEM CALLS
 WHEN SCHEDULING STOPS, FREES THE MEMORY
 3 SCHEDULERS IN RTAI:-
 UNIPROCESSOR(UP) SCHEDULER
 SMP SCHEDULER
 MUP(MULTI UNIPROCESSOR) SCHEDULER
SOME COMMUNICATION SERVICES IN RTAI:-
 MAILBOXES
 MESSAGES & RPC
 SEMAPHORES
 FIFO
 WATCHDOG
 USER SPACE INTERFACE TO
RTAI
 STEALING TASKS FROM
LINUX
 EXCEPTION HANDLING
 ASYNCHRONOUS I/O
 ACTIVATES THE PROPER HANDLER
 HANDLES INTERRUPT CONTROLLER
 TAKES CARE OF PENDING INTERRUPTS OR SERVICE
REQUESTS
 IT IS AN ISR(INTERRUPT SERVICE ROUTINE)
TO USE RTAI, THESE SHOULD BE LOADED:-
 rtai:- INITIALIZES ALL CONTROL VARIABLES
 rtai_sched:- REAL TIME SCHEDULER MODULE
 rtai_fifos:- IMPLEMENTS FIFO SERVICES
 rtai_shm:- ALLOWS MEMORY SHARING
 lxrt:- MAKES RTAI FUNCTIONS AVAILABLE TO LINUX
 posix threads
Rtai

More Related Content

What's hot

Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInteX Research Lab
 
INSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISMINSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISMKamran Ashraf
 
Performance Enhancement with Pipelining
Performance Enhancement with PipeliningPerformance Enhancement with Pipelining
Performance Enhancement with PipeliningAneesh Raveendran
 
Pipelining of Processors
Pipelining of ProcessorsPipelining of Processors
Pipelining of ProcessorsGaditek
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipeliningMazin Alwaaly
 
Pipelining_Computer Organization_TU(BIM)
Pipelining_Computer Organization_TU(BIM)Pipelining_Computer Organization_TU(BIM)
Pipelining_Computer Organization_TU(BIM)Kapil Khatiwada
 
Loop parallelization & pipelining
Loop parallelization & pipeliningLoop parallelization & pipelining
Loop parallelization & pipeliningjagrat123
 
Concept of Pipelining
Concept of PipeliningConcept of Pipelining
Concept of PipeliningSHAKOOR AB
 
Arithmatic pipline
Arithmatic piplineArithmatic pipline
Arithmatic piplineA. Shamel
 
Lec18 pipeline
Lec18 pipelineLec18 pipeline
Lec18 pipelineGRajendra
 
Pipelining powerpoint presentation
Pipelining powerpoint presentationPipelining powerpoint presentation
Pipelining powerpoint presentationbhavanadonthi
 
EBPF and Linux Networking
EBPF and Linux NetworkingEBPF and Linux Networking
EBPF and Linux NetworkingPLUMgrid
 
Instruction pipelining
Instruction pipeliningInstruction pipelining
Instruction pipeliningTech_MX
 

What's hot (20)

Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
 
Design a pipeline
Design a pipelineDesign a pipeline
Design a pipeline
 
INSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISMINSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISM
 
Performance Enhancement with Pipelining
Performance Enhancement with PipeliningPerformance Enhancement with Pipelining
Performance Enhancement with Pipelining
 
Pipelining of Processors
Pipelining of ProcessorsPipelining of Processors
Pipelining of Processors
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
 
Pipelining_Computer Organization_TU(BIM)
Pipelining_Computer Organization_TU(BIM)Pipelining_Computer Organization_TU(BIM)
Pipelining_Computer Organization_TU(BIM)
 
2013 ufsc rt_grad_class
2013 ufsc rt_grad_class2013 ufsc rt_grad_class
2013 ufsc rt_grad_class
 
Loop parallelization & pipelining
Loop parallelization & pipeliningLoop parallelization & pipelining
Loop parallelization & pipelining
 
Concept of Pipelining
Concept of PipeliningConcept of Pipelining
Concept of Pipelining
 
3 Pipelining
3 Pipelining3 Pipelining
3 Pipelining
 
Pipelining
PipeliningPipelining
Pipelining
 
Arithmatic pipline
Arithmatic piplineArithmatic pipline
Arithmatic pipline
 
Lec18 pipeline
Lec18 pipelineLec18 pipeline
Lec18 pipeline
 
pipelining
pipeliningpipelining
pipelining
 
Pipelining
PipeliningPipelining
Pipelining
 
Pipelining powerpoint presentation
Pipelining powerpoint presentationPipelining powerpoint presentation
Pipelining powerpoint presentation
 
Presentation on risc pipeline
Presentation on risc pipelinePresentation on risc pipeline
Presentation on risc pipeline
 
EBPF and Linux Networking
EBPF and Linux NetworkingEBPF and Linux Networking
EBPF and Linux Networking
 
Instruction pipelining
Instruction pipeliningInstruction pipelining
Instruction pipelining
 

Similar to Rtai

Enea Enabling Real-Time in Linux Whitepaper
Enea Enabling Real-Time in Linux WhitepaperEnea Enabling Real-Time in Linux Whitepaper
Enea Enabling Real-Time in Linux WhitepaperEnea Software AB
 
6Tisch telecom_bretagne_2016
6Tisch telecom_bretagne_20166Tisch telecom_bretagne_2016
6Tisch telecom_bretagne_2016Pascal Thubert
 
Dynamic classification in silicon-based forwarding engine environments
Dynamic classification in silicon-based forwarding engine environmentsDynamic classification in silicon-based forwarding engine environments
Dynamic classification in silicon-based forwarding engine environmentsTal Lavian Ph.D.
 
Four Ways to Improve Linux Performance IEEE Webinar, R2.0
Four Ways to Improve Linux Performance IEEE Webinar, R2.0Four Ways to Improve Linux Performance IEEE Webinar, R2.0
Four Ways to Improve Linux Performance IEEE Webinar, R2.0Michael Christofferson
 
asap2013-khoa-presentation
asap2013-khoa-presentationasap2013-khoa-presentation
asap2013-khoa-presentationAbhishek Jain
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Automating the Hunt for Non-Obvious Sources of Latency Spreads
Automating the Hunt for Non-Obvious Sources of Latency SpreadsAutomating the Hunt for Non-Obvious Sources of Latency Spreads
Automating the Hunt for Non-Obvious Sources of Latency SpreadsScyllaDB
 
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..Trinath Somanchi
 
System on Chip Based RTC in Power Electronics
System on Chip Based RTC in Power ElectronicsSystem on Chip Based RTC in Power Electronics
System on Chip Based RTC in Power ElectronicsjournalBEEI
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded SystemsHimanshu Ghetia
 
6TiSCH @Telecom Bretagne 2015
6TiSCH @Telecom Bretagne 20156TiSCH @Telecom Bretagne 2015
6TiSCH @Telecom Bretagne 2015Pascal Thubert
 
AndreaPetrucci_ACAT_2007
AndreaPetrucci_ACAT_2007AndreaPetrucci_ACAT_2007
AndreaPetrucci_ACAT_2007Andrea PETRUCCI
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating SystemsPawandeep Kaur
 

Similar to Rtai (20)

Making Linux do Hard Real-time
Making Linux do Hard Real-timeMaking Linux do Hard Real-time
Making Linux do Hard Real-time
 
Enea Enabling Real-Time in Linux Whitepaper
Enea Enabling Real-Time in Linux WhitepaperEnea Enabling Real-Time in Linux Whitepaper
Enea Enabling Real-Time in Linux Whitepaper
 
6Tisch telecom_bretagne_2016
6Tisch telecom_bretagne_20166Tisch telecom_bretagne_2016
6Tisch telecom_bretagne_2016
 
Making Linux do Hard Real-time
Making Linux do Hard Real-timeMaking Linux do Hard Real-time
Making Linux do Hard Real-time
 
UNIT V PPT.ppt
UNIT V PPT.pptUNIT V PPT.ppt
UNIT V PPT.ppt
 
Rtos
RtosRtos
Rtos
 
Dynamic classification in silicon-based forwarding engine environments
Dynamic classification in silicon-based forwarding engine environmentsDynamic classification in silicon-based forwarding engine environments
Dynamic classification in silicon-based forwarding engine environments
 
Embedded os
Embedded osEmbedded os
Embedded os
 
Four Ways to Improve Linux Performance IEEE Webinar, R2.0
Four Ways to Improve Linux Performance IEEE Webinar, R2.0Four Ways to Improve Linux Performance IEEE Webinar, R2.0
Four Ways to Improve Linux Performance IEEE Webinar, R2.0
 
asap2013-khoa-presentation
asap2013-khoa-presentationasap2013-khoa-presentation
asap2013-khoa-presentation
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
Lab6 rtos
Lab6 rtosLab6 rtos
Lab6 rtos
 
Automating the Hunt for Non-Obvious Sources of Latency Spreads
Automating the Hunt for Non-Obvious Sources of Latency SpreadsAutomating the Hunt for Non-Obvious Sources of Latency Spreads
Automating the Hunt for Non-Obvious Sources of Latency Spreads
 
MIcrokernel
MIcrokernelMIcrokernel
MIcrokernel
 
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..
 
System on Chip Based RTC in Power Electronics
System on Chip Based RTC in Power ElectronicsSystem on Chip Based RTC in Power Electronics
System on Chip Based RTC in Power Electronics
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
6TiSCH @Telecom Bretagne 2015
6TiSCH @Telecom Bretagne 20156TiSCH @Telecom Bretagne 2015
6TiSCH @Telecom Bretagne 2015
 
AndreaPetrucci_ACAT_2007
AndreaPetrucci_ACAT_2007AndreaPetrucci_ACAT_2007
AndreaPetrucci_ACAT_2007
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating Systems
 

Rtai

  • 2.  Systems following timing constraints  both correctness of computational logic and delivery time matter  3 types :-  hard real time  firm real time  soft real time
  • 3.  UNDER DEVELOPMENT AT DIAMP  ADD A RT KERNEL BELOW LINUX KERNEL  ADDS FEATURES OF RTOS TO LINUX  MAKES LINUX KERNEL FULLY PRE-EMPTABLE  LINUX IS A BACKGROUND TASK FOR RTAI  HELPS LINUX TO FULFILL SOME REAL TIME CONSTRAINTS
  • 4.
  • 5.  HARDWARE ABSTRACTION LAYER(HAL)  INTERPROCESS COMMUNICATION(IPC)  POSIX THREADS  INTERRUPT DISPATCHER  SCHEDULER  MEMORY MANAGEMENT
  • 6.  DEFINES AN INTERFACE BETWEEN LINUX & RTAI  A STRUCTURE INSTALLED IN LINUX KERNEL  EXPORTS LINUX DATA & FUNCTIONS RELATED TO H/W TO RTAI  THIS ALLOWS RTAI TASKS TO RUN PARALLEL WITH LINUX PROCESSES  MAKES CHANGES IN OPERATIONS EASIER
  • 7.
  • 8.  DISTRIBUTES CPU TO TASKS , ON SYSTEM CALLS  WHEN SCHEDULING STOPS, FREES THE MEMORY  3 SCHEDULERS IN RTAI:-  UNIPROCESSOR(UP) SCHEDULER  SMP SCHEDULER  MUP(MULTI UNIPROCESSOR) SCHEDULER
  • 9. SOME COMMUNICATION SERVICES IN RTAI:-  MAILBOXES  MESSAGES & RPC  SEMAPHORES  FIFO  WATCHDOG
  • 10.  USER SPACE INTERFACE TO RTAI  STEALING TASKS FROM LINUX  EXCEPTION HANDLING  ASYNCHRONOUS I/O
  • 11.
  • 12.  ACTIVATES THE PROPER HANDLER  HANDLES INTERRUPT CONTROLLER  TAKES CARE OF PENDING INTERRUPTS OR SERVICE REQUESTS  IT IS AN ISR(INTERRUPT SERVICE ROUTINE)
  • 13.
  • 14. TO USE RTAI, THESE SHOULD BE LOADED:-  rtai:- INITIALIZES ALL CONTROL VARIABLES  rtai_sched:- REAL TIME SCHEDULER MODULE  rtai_fifos:- IMPLEMENTS FIFO SERVICES  rtai_shm:- ALLOWS MEMORY SHARING  lxrt:- MAKES RTAI FUNCTIONS AVAILABLE TO LINUX  posix threads