SlideShare a Scribd company logo
1 of 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]

More Related Content

What's hot

Linux process management
Linux process managementLinux process management
Linux process management
Raghu nath
 
14 relationship between processes
14 relationship between processes14 relationship between processes
14 relationship between processes
myrajendra
 

What's hot (20)

Message passing interface
Message passing interfaceMessage passing interface
Message passing interface
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
 
Linux process management
Linux process managementLinux process management
Linux process management
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
 
Cs8493 unit 2
Cs8493 unit 2Cs8493 unit 2
Cs8493 unit 2
 
File systems for Embedded Linux
File systems for Embedded LinuxFile systems for Embedded Linux
File systems for Embedded Linux
 
Troubleshooting complex layer 2 issues ppt 16 bsit098
Troubleshooting complex  layer 2 issues ppt 16 bsit098Troubleshooting complex  layer 2 issues ppt 16 bsit098
Troubleshooting complex layer 2 issues ppt 16 bsit098
 
Storage Management in Linux OS.ppt
Storage Management in Linux OS.pptStorage Management in Linux OS.ppt
Storage Management in Linux OS.ppt
 
Problems of cooperative system
Problems of cooperative systemProblems of cooperative system
Problems of cooperative system
 
Linux kernel debugging
Linux kernel debuggingLinux kernel debugging
Linux kernel debugging
 
Sincronizacion de procesos_android
Sincronizacion de procesos_androidSincronizacion de procesos_android
Sincronizacion de procesos_android
 
Signal Handling in Linux
Signal Handling in LinuxSignal Handling in Linux
Signal Handling in Linux
 
System call
System callSystem call
System call
 
Ip tables
Ip tablesIp tables
Ip tables
 
Samba power point presentation
Samba power point presentationSamba power point presentation
Samba power point presentation
 
Process threads operating system.
Process threads operating system.Process threads operating system.
Process threads operating system.
 
14 relationship between processes
14 relationship between processes14 relationship between processes
14 relationship between processes
 
Semaphore
Semaphore Semaphore
Semaphore
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
 
Threads in Operating System | Multithreading | Interprocess Communication
Threads in Operating System | Multithreading | Interprocess CommunicationThreads in Operating System | Multithreading | Interprocess Communication
Threads in Operating System | Multithreading | Interprocess Communication
 

Viewers also liked (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
 

Similar to 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
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
Pradeep Kumar TS
 

Similar to 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
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
IOStream.pptx
IOStream.pptxIOStream.pptx
IOStream.pptx
 

More from Dr. C.V. Suresh Babu

More from 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”
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
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
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
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
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

Ipc in linux