SlideShare a Scribd company logo
BY
M.LAVANYA,M.Sc(cs)
NADAR SARASWATHI COLLGE OF ARTS &SCIENCE
THENI
INTER PROCESS COMMUNICATION
Inter process communication is a mechanism which
allows processes to communicate with each other and
synchronize their actions. Whatever process is present
in the system, they can communicate with each other.
It is a method of cooperation
TYPES OF PROCESS
There are two types of processes –
 Independent Process: An Independent process is
not affected by other executing processes.
 Cooperating Process: A Cooperating process can be
affected by other executing processes.
BENEFITS OF INTER PROCESS
Some of the benefits of using inter process communication
are –
 Information Sharing: Multiple processes can share same
information to perform some tasks. In such scenarios, inter
process communication helps. There may be a scenario
when a process needs to access remote process. In such
case, this method of communication helps.
 Resource Sharing: We can do with the help of inter
process communication.
 Information Sharing: Multiple processes can share same
information to perform some tasks. In such scenarios, inter
process communication helps. There may be a scenario
BENEFITS OF INTER PROCESS
 Resource Sharing: We can do with the help of inter
process communication.
 Communication speed: Computational speed will
also increase if inter process communication method
is used to communicate between processes.
 Modularity: An architecture is break down into
different cooperating modules to increase the
efficiency. All the modules cooperate using inter
process communication method.
SHARED MEMORY
Shared Memory
 Shared memory is an efficient way to share data
between processes. One process will create a memory
portion which other processes can access if allowed.
 Let’s take an example to understand inter process
communication using shared memory.
SHARED MEMORY
There are two parts (a) and (b). Both represent shared
memory techniques.
(a)Image
Process A generate information about certain resources and
keeps records in shared memory. When process B needs to
use that information, it will check the record stored in
shared memory and take note of the information generated
by process A and act accordingly. Thus, processes can use
shared memory for extracting information as a record from
other process as well as for delivering any specific
information to other process.
 Image (b):
Whenever process A uses some shared memory, it
sends information to the kernel (operating system).
When process B wants to perform some operation, it
first checks the Kernel if any other device is using that
resources or not. If any process is using that resource,
it will take other resources which is free.

MESSAGE PASSING
2. Message Passing
In message passing, there is no use of shared memory.
If two processes A and B want to communicate with
each other, at first, they establish a communication
link. After this, they can start exchanging messages
using basic primitives.
They need at least 2 basic primitives –
(a) Send (message, destination) or Send(message)
(b) Receive (message, host) or Receive(message)
A standard message has two parts –
(a) Header
(b) Body
 Header contains message type, source id, destination id,
message length and control information. Control
information contains sequence number, priority, action to
do if runs out of space etc.
 Body contains the actual message.
 Generally, any message is sent using FIFO style.
MESSAGE PASSING
In this call, the sender and receiver processes address
each other by names.
Mode of communication between two processes can take
place in two ways:
 Direct Addressing
 Indirect Addressing
DIRECT ADDRESSING OF MESSAGE
PASSING
1. Direct Addressing of Message Passing
In this type, the two processes need to know the name of
each other to communicate. This become easy if they have
the same parent.
 Example:
If process A send message to process B, then, basic
primitives will be –
 Send (B, message);
 Receive (A, message);

More Related Content

What's hot

Data abstraction in DBMS
Data abstraction in DBMSData abstraction in DBMS
Data abstraction in DBMS
Papan Sarkar
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
SelshaCs
 
Dbms
DbmsDbms
Dbms
CAG
 
1.4 data independence
1.4 data independence1.4 data independence
1.4 data independence
BHARATH KUMAR
 
Degrees of data abstraction
Degrees of data abstractionDegrees of data abstraction
Degrees of data abstractionMary May Porto
 
Inter thread communication
Inter thread communicationInter thread communication
Inter thread communication
subash andey
 
Dbms
DbmsDbms
Dbms Lecture Notes
Dbms Lecture NotesDbms Lecture Notes
Dbms Lecture Notes
dM Technologies
 
DBMS - Database Management System
DBMS - Database Management System DBMS - Database Management System
DBMS - Database Management System
Krishna Patel
 
DBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL CommandsDBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL Commands
BHARATH KUMAR
 

What's hot (10)

Data abstraction in DBMS
Data abstraction in DBMSData abstraction in DBMS
Data abstraction in DBMS
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Dbms
DbmsDbms
Dbms
 
1.4 data independence
1.4 data independence1.4 data independence
1.4 data independence
 
Degrees of data abstraction
Degrees of data abstractionDegrees of data abstraction
Degrees of data abstraction
 
Inter thread communication
Inter thread communicationInter thread communication
Inter thread communication
 
Dbms
DbmsDbms
Dbms
 
Dbms Lecture Notes
Dbms Lecture NotesDbms Lecture Notes
Dbms Lecture Notes
 
DBMS - Database Management System
DBMS - Database Management System DBMS - Database Management System
DBMS - Database Management System
 
DBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL CommandsDBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL Commands
 

Similar to Os

5_Interprocess Communication.pptx
5_Interprocess Communication.pptx5_Interprocess Communication.pptx
5_Interprocess Communication.pptx
ssuser2adefd1
 
Inter-Process communication in Operating System.ppt
Inter-Process communication in Operating System.pptInter-Process communication in Operating System.ppt
Inter-Process communication in Operating System.ppt
NitihyaAshwinC
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
Adeel Rasheed
 
operating system for computer engineering ch3.ppt
operating system for computer engineering ch3.pptoperating system for computer engineering ch3.ppt
operating system for computer engineering ch3.ppt
gezaegebre1
 
Final Project IEEE format
Final Project IEEE formatFinal Project IEEE format
Final Project IEEE formatFaizan Ahmed
 
Osi model
Osi modelOsi model
Osi model
Nazifa95
 
Task communication
Task communicationTask communication
Task communication
1jayanti
 
Group Communication in distributed Systems.docx
Group Communication in distributed Systems.docxGroup Communication in distributed Systems.docx
Group Communication in distributed Systems.docx
MsecMca
 
Operating system
Operating systemOperating system
Operating system
Subha Selvam
 
2 opreating system
2 opreating system2 opreating system
2 opreating system
HekmatFaisal
 
Designing Application over mobile environment
Designing Application over mobile environmentDesigning Application over mobile environment
Designing Application over mobile environment
Maulik Patel
 
Os lecture 6
Os lecture 6Os lecture 6
Os lecture 6
Dr. Ahmed J. Obaid
 
OSI Model
OSI ModelOSI Model
OSI Model
Rahul Marwaha
 
chapter - 1.ppt
chapter - 1.pptchapter - 1.ppt
chapter - 1.ppt
SakthiVinoth78
 
Producer Consumer Problem in C explained.ppt
Producer Consumer Problem in C explained.pptProducer Consumer Problem in C explained.ppt
Producer Consumer Problem in C explained.ppt
ossama8
 
Dos unit3
Dos unit3Dos unit3
Dos unit3
JebasheelaSJ
 
Cn4,com net
Cn4,com netCn4,com net
Cn4,com net
FarhadHimel
 
3. osi model
3. osi model3. osi model
3. osi model
ShafqatAli503316
 

Similar to Os (20)

5_Interprocess Communication.pptx
5_Interprocess Communication.pptx5_Interprocess Communication.pptx
5_Interprocess Communication.pptx
 
Inter-Process communication in Operating System.ppt
Inter-Process communication in Operating System.pptInter-Process communication in Operating System.ppt
Inter-Process communication in Operating System.ppt
 
Ch4
Ch4Ch4
Ch4
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 
operating system for computer engineering ch3.ppt
operating system for computer engineering ch3.pptoperating system for computer engineering ch3.ppt
operating system for computer engineering ch3.ppt
 
Final Project IEEE format
Final Project IEEE formatFinal Project IEEE format
Final Project IEEE format
 
Osi model
Osi modelOsi model
Osi model
 
os - Copy
os - Copyos - Copy
os - Copy
 
Task communication
Task communicationTask communication
Task communication
 
Group Communication in distributed Systems.docx
Group Communication in distributed Systems.docxGroup Communication in distributed Systems.docx
Group Communication in distributed Systems.docx
 
Operating system
Operating systemOperating system
Operating system
 
2 opreating system
2 opreating system2 opreating system
2 opreating system
 
Designing Application over mobile environment
Designing Application over mobile environmentDesigning Application over mobile environment
Designing Application over mobile environment
 
Os lecture 6
Os lecture 6Os lecture 6
Os lecture 6
 
OSI Model
OSI ModelOSI Model
OSI Model
 
chapter - 1.ppt
chapter - 1.pptchapter - 1.ppt
chapter - 1.ppt
 
Producer Consumer Problem in C explained.ppt
Producer Consumer Problem in C explained.pptProducer Consumer Problem in C explained.ppt
Producer Consumer Problem in C explained.ppt
 
Dos unit3
Dos unit3Dos unit3
Dos unit3
 
Cn4,com net
Cn4,com netCn4,com net
Cn4,com net
 
3. osi model
3. osi model3. osi model
3. osi model
 

More from snegacmr

Process improvement
Process improvementProcess improvement
Process improvement
snegacmr
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web services
snegacmr
 
Business intelligence
Business intelligenceBusiness intelligence
Business intelligence
snegacmr
 
Basic concepts of parallelization
Basic concepts of parallelizationBasic concepts of parallelization
Basic concepts of parallelization
snegacmr
 
Deepi rdbms
Deepi rdbmsDeepi rdbms
Deepi rdbms
snegacmr
 
Computer network
Computer networkComputer network
Computer network
snegacmr
 
Dm powerpoint
Dm powerpointDm powerpoint
Dm powerpoint
snegacmr
 
Sql
SqlSql
Data mining
Data miningData mining
Data mining
snegacmr
 
Query optimization
Query optimizationQuery optimization
Query optimization
snegacmr
 
Network security
Network securityNetwork security
Network security
snegacmr
 
Discretization and concept hierarchy(os)
Discretization and concept hierarchy(os)Discretization and concept hierarchy(os)
Discretization and concept hierarchy(os)
snegacmr
 
System components (os)
System components (os)System components (os)
System components (os)
snegacmr
 

More from snegacmr (14)

Process improvement
Process improvementProcess improvement
Process improvement
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web services
 
Business intelligence
Business intelligenceBusiness intelligence
Business intelligence
 
Basic concepts of parallelization
Basic concepts of parallelizationBasic concepts of parallelization
Basic concepts of parallelization
 
Deepi rdbms
Deepi rdbmsDeepi rdbms
Deepi rdbms
 
Computer network
Computer networkComputer network
Computer network
 
Dm powerpoint
Dm powerpointDm powerpoint
Dm powerpoint
 
Sql
SqlSql
Sql
 
Data mining
Data miningData mining
Data mining
 
Cn
CnCn
Cn
 
Query optimization
Query optimizationQuery optimization
Query optimization
 
Network security
Network securityNetwork security
Network security
 
Discretization and concept hierarchy(os)
Discretization and concept hierarchy(os)Discretization and concept hierarchy(os)
Discretization and concept hierarchy(os)
 
System components (os)
System components (os)System components (os)
System components (os)
 

Recently uploaded

Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 

Recently uploaded (20)

Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 

Os

  • 2. INTER PROCESS COMMUNICATION Inter process communication is a mechanism which allows processes to communicate with each other and synchronize their actions. Whatever process is present in the system, they can communicate with each other. It is a method of cooperation
  • 3. TYPES OF PROCESS There are two types of processes –  Independent Process: An Independent process is not affected by other executing processes.  Cooperating Process: A Cooperating process can be affected by other executing processes.
  • 4. BENEFITS OF INTER PROCESS Some of the benefits of using inter process communication are –  Information Sharing: Multiple processes can share same information to perform some tasks. In such scenarios, inter process communication helps. There may be a scenario when a process needs to access remote process. In such case, this method of communication helps.  Resource Sharing: We can do with the help of inter process communication.  Information Sharing: Multiple processes can share same information to perform some tasks. In such scenarios, inter process communication helps. There may be a scenario
  • 5. BENEFITS OF INTER PROCESS  Resource Sharing: We can do with the help of inter process communication.  Communication speed: Computational speed will also increase if inter process communication method is used to communicate between processes.  Modularity: An architecture is break down into different cooperating modules to increase the efficiency. All the modules cooperate using inter process communication method.
  • 6. SHARED MEMORY Shared Memory  Shared memory is an efficient way to share data between processes. One process will create a memory portion which other processes can access if allowed.  Let’s take an example to understand inter process communication using shared memory.
  • 7. SHARED MEMORY There are two parts (a) and (b). Both represent shared memory techniques. (a)Image Process A generate information about certain resources and keeps records in shared memory. When process B needs to use that information, it will check the record stored in shared memory and take note of the information generated by process A and act accordingly. Thus, processes can use shared memory for extracting information as a record from other process as well as for delivering any specific information to other process.
  • 8.  Image (b): Whenever process A uses some shared memory, it sends information to the kernel (operating system). When process B wants to perform some operation, it first checks the Kernel if any other device is using that resources or not. If any process is using that resource, it will take other resources which is free. 
  • 9. MESSAGE PASSING 2. Message Passing In message passing, there is no use of shared memory. If two processes A and B want to communicate with each other, at first, they establish a communication link. After this, they can start exchanging messages using basic primitives. They need at least 2 basic primitives – (a) Send (message, destination) or Send(message) (b) Receive (message, host) or Receive(message)
  • 10. A standard message has two parts – (a) Header (b) Body  Header contains message type, source id, destination id, message length and control information. Control information contains sequence number, priority, action to do if runs out of space etc.  Body contains the actual message.  Generally, any message is sent using FIFO style.
  • 11. MESSAGE PASSING In this call, the sender and receiver processes address each other by names. Mode of communication between two processes can take place in two ways:  Direct Addressing  Indirect Addressing
  • 12. DIRECT ADDRESSING OF MESSAGE PASSING 1. Direct Addressing of Message Passing In this type, the two processes need to know the name of each other to communicate. This become easy if they have the same parent.  Example: If process A send message to process B, then, basic primitives will be –  Send (B, message);  Receive (A, message);