SlideShare ist ein Scribd-Unternehmen logo
1 von 69
Inter- Process Communication ,[object Object],[object Object],[object Object],[object Object],[object Object]
Pipes ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
System calls for using a pipe ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
‘ ls | more’  example ,[object Object],[object Object],[object Object],[object Object]
‘ ls | more’  example ,[object Object],[object Object],[object Object],[object Object]
‘ ls | more’  example ,[object Object],[object Object],[object Object],[object Object]
Wrapper functions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Wrapper functions ,[object Object]
Pipe Data Structures ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Creating a pipe ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Destroying a pipe ,[object Object],[object Object],[object Object],[object Object]
Reading from a pipe ,[object Object],[object Object]
Reading from a pipe ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Writing into a pipe ,[object Object],[object Object],[object Object]
Writing into a pipe ,[object Object],[object Object],[object Object],[object Object]
Writing into a pipe ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
FIFOs ,[object Object],[object Object],[object Object]
Fifo_open( ) ,[object Object]
Fifo_open( ) ,[object Object],[object Object]
System V IPC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Using an IPC resource ,[object Object],[object Object],[object Object]
Using an IPC resource  ,[object Object],[object Object],[object Object],[object Object]
Using an IPC resource ,[object Object],[object Object],[object Object],[object Object]
Using an IPC resource ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
IPC semaphores ,[object Object],[object Object],[object Object],[object Object],[object Object]
IPC semaphores ,[object Object],[object Object],[object Object]
IPC semaphores ,[object Object],[object Object],[object Object],[object Object],[object Object]
IPC semaphore data structures
IPC semaphore data structures ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
IPC semaphore data structures ,[object Object],[object Object],[object Object],[object Object]
Undoable semaphore operations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
IPC semaphore data structures ,[object Object]
IPC Messages ,[object Object],[object Object],[object Object]
IPC message queue data structures
IPC message queue data structures
Sending and Receiving Messages ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
IPC Shared Memory ,[object Object],[object Object],[object Object],[object Object],[object Object]
IPC shared memory data structures
IPC Shared Memory Data Structures
Demand paging for IPC shared memory segments ,[object Object],[object Object],[object Object]
Swapping out pages of IPC shared memory segments ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
LINUX SCHEDULING (version 2.6.x)
[object Object],[object Object],[object Object]
CPU and I/O-bound Threads ,[object Object],[object Object],[object Object]
Linux Kernel 2.6 ,[object Object]
Linux Scheduling Goals ,[object Object],[object Object],[object Object],[object Object]
POLICY ,[object Object],[object Object]
Linux Policy ,[object Object],[object Object],[object Object]
There are two key data structures in the Linux 2.6.8.1 scheduler that allow for it to perform its duties in O(1) time, and its design revolves around them – runqueues and priority arrays.
RUNQUEUE ,[object Object],[object Object],[object Object]
RUNQUEUE DATASTRUCTURE ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
PRIORITY ARRAY ,[object Object],[object Object],[object Object],[object Object],[object Object]
Priority Array Datastructure ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Priorities ,[object Object],[object Object],[object Object]
Priorities ,[object Object],[object Object],[object Object],[object Object]
I/O-bound vs. CPU-bound Heuristics ,[object Object],[object Object],[object Object]
Calculating dynamic priority ,[object Object],[object Object],[object Object],[object Object]
Calculating Timeslice ,[object Object],[object Object]
[object Object],[object Object],[object Object]
Reinsertion of interactive task ,[object Object]
Fairness when forking new tasks ,[object Object],[object Object]
Interactivity Credits ,[object Object],[object Object],[object Object],[object Object],[object Object]
SLEEPING & WAKING TASKS
Wait queue ,[object Object],[object Object]
Going to Sleep ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Interruptible & Uninterruptible states ,[object Object],[object Object]
Main Scheduling Function ,[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
Mohd Arif
 
High-Performance Networking Using eBPF, XDP, and io_uring
High-Performance Networking Using eBPF, XDP, and io_uringHigh-Performance Networking Using eBPF, XDP, and io_uring
High-Performance Networking Using eBPF, XDP, and io_uring
ScyllaDB
 
The linux networking architecture
The linux networking architectureThe linux networking architecture
The linux networking architecture
hugo lu
 

Was ist angesagt? (20)

Unix signals
Unix signalsUnix signals
Unix signals
 
Linux scheduler
Linux schedulerLinux scheduler
Linux scheduler
 
Socket programming using C
Socket programming using CSocket programming using C
Socket programming using C
 
FreeBSD and Drivers
FreeBSD and DriversFreeBSD and Drivers
FreeBSD and Drivers
 
U-Boot Porting on New Hardware
U-Boot Porting on New HardwareU-Boot Porting on New Hardware
U-Boot Porting on New Hardware
 
linux file sysytem& input and output
linux file sysytem& input and outputlinux file sysytem& input and output
linux file sysytem& input and output
 
Linux Network Stack
Linux Network StackLinux Network Stack
Linux Network Stack
 
Dpdk performance
Dpdk performanceDpdk performance
Dpdk performance
 
Introduction to SIP(Session Initiation Protocol)
Introduction to SIP(Session Initiation Protocol)Introduction to SIP(Session Initiation Protocol)
Introduction to SIP(Session Initiation Protocol)
 
RIL and Android Telephony
RIL and Android TelephonyRIL and Android Telephony
RIL and Android Telephony
 
Ch7 Process Synchronization galvin
Ch7 Process Synchronization galvinCh7 Process Synchronization galvin
Ch7 Process Synchronization galvin
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
High-Performance Networking Using eBPF, XDP, and io_uring
High-Performance Networking Using eBPF, XDP, and io_uringHigh-Performance Networking Using eBPF, XDP, and io_uring
High-Performance Networking Using eBPF, XDP, and io_uring
 
Cisco CCNA-Router on Stick
Cisco CCNA-Router on StickCisco CCNA-Router on Stick
Cisco CCNA-Router on Stick
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
 
The linux networking architecture
The linux networking architectureThe linux networking architecture
The linux networking architecture
 
Chapter 2: Operating System Structures
Chapter 2: Operating System StructuresChapter 2: Operating System Structures
Chapter 2: Operating System Structures
 
Interprocess communication (IPC) IN O.S
Interprocess communication (IPC) IN O.SInterprocess communication (IPC) IN O.S
Interprocess communication (IPC) IN O.S
 
LF_DPDK_Mellanox bifurcated driver model
LF_DPDK_Mellanox bifurcated driver modelLF_DPDK_Mellanox bifurcated driver model
LF_DPDK_Mellanox bifurcated driver model
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Operating Systems - "Chapter 4:  Multithreaded Programming"Operating Systems - "Chapter 4:  Multithreaded Programming"
Operating Systems - "Chapter 4: Multithreaded Programming"
 

Andere mochten auch (7)

Ch09
Ch09Ch09
Ch09
 
Unit IV with Answers
Unit IV with AnswersUnit IV with Answers
Unit IV with Answers
 
Rm7 sampling design
Rm7 sampling designRm7 sampling design
Rm7 sampling design
 
Ch08
Ch08Ch08
Ch08
 
P threads
P threadsP threads
P threads
 
Ch10
Ch10Ch10
Ch10
 
Rm1 research in business
Rm1 research in businessRm1 research in business
Rm1 research in business
 

Ähnlich wie Ipc in linux

Input File dalam C++
Input File dalam C++Input File dalam C++
Input File dalam C++
Teguh Nugraha
 
1-Information sharing 2-Computation speedup3-Modularity4-.docx
1-Information sharing 2-Computation speedup3-Modularity4-.docx1-Information sharing 2-Computation speedup3-Modularity4-.docx
1-Information sharing 2-Computation speedup3-Modularity4-.docx
SONU61709
 
C programming session 08
C programming session 08C programming session 08
C programming session 08
Dushmanta Nath
 
02 fundamentals
02 fundamentals02 fundamentals
02 fundamentals
sirmanohar
 

Ähnlich wie Ipc in linux (20)

Unit V.pptx
Unit V.pptxUnit V.pptx
Unit V.pptx
 
Input File dalam C++
Input File dalam C++Input File dalam C++
Input File dalam C++
 
Linux System Programming - Buffered I/O
Linux System Programming - Buffered I/O Linux System Programming - Buffered I/O
Linux System Programming - Buffered I/O
 
1-Information sharing 2-Computation speedup3-Modularity4-.docx
1-Information sharing 2-Computation speedup3-Modularity4-.docx1-Information sharing 2-Computation speedup3-Modularity4-.docx
1-Information sharing 2-Computation speedup3-Modularity4-.docx
 
Implementation of FIFO in Linux
Implementation of FIFO in LinuxImplementation of FIFO in Linux
Implementation of FIFO in Linux
 
File_Management_in_C
File_Management_in_CFile_Management_in_C
File_Management_in_C
 
C programming session 08
C programming session 08C programming session 08
C programming session 08
 
File handling C program
File handling C programFile handling C program
File handling C program
 
Java IO
Java IOJava IO
Java IO
 
Linux basics
Linux basicsLinux basics
Linux basics
 
02 fundamentals
02 fundamentals02 fundamentals
02 fundamentals
 
18CS56-UP-Module 3.pptx
18CS56-UP-Module 3.pptx18CS56-UP-Module 3.pptx
18CS56-UP-Module 3.pptx
 
Files nts
Files ntsFiles nts
Files nts
 
C library for input output operations.cstdio.(stdio.h)
C library for input output operations.cstdio.(stdio.h)C library for input output operations.cstdio.(stdio.h)
C library for input output operations.cstdio.(stdio.h)
 
File management in C++
File management in C++File management in C++
File management in C++
 
File management
File managementFile management
File management
 
project_531
project_531project_531
project_531
 
15. Streams Files and Directories
15. Streams Files and Directories 15. Streams Files and Directories
15. Streams Files and Directories
 
IOStream.pptx
IOStream.pptxIOStream.pptx
IOStream.pptx
 
Module2-Files.pdf
Module2-Files.pdfModule2-Files.pdf
Module2-Files.pdf
 

Mehr von Dr. C.V. Suresh Babu

Mehr von Dr. C.V. Suresh Babu (20)

Data analytics with R
Data analytics with RData analytics with R
Data analytics with R
 
Association rules
Association rulesAssociation rules
Association rules
 
Clustering
ClusteringClustering
Clustering
 
Classification
ClassificationClassification
Classification
 
Blue property assumptions.
Blue property assumptions.Blue property assumptions.
Blue property assumptions.
 
Introduction to regression
Introduction to regressionIntroduction to regression
Introduction to regression
 
DART
DARTDART
DART
 
Mycin
MycinMycin
Mycin
 
Expert systems
Expert systemsExpert systems
Expert systems
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
 
Bayes network
Bayes networkBayes network
Bayes network
 
Bayes' theorem
Bayes' theoremBayes' theorem
Bayes' theorem
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
Rule based system
Rule based systemRule based system
Rule based system
 
Formal Logic in AI
Formal Logic in AIFormal Logic in AI
Formal Logic in AI
 
Production based system
Production based systemProduction based system
Production based system
 
Game playing in AI
Game playing in AIGame playing in AI
Game playing in AI
 
Diagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AIDiagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AI
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 

Kürzlich hochgeladen

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Ipc in linux