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

DOCX
Technical Note on DBMS
PPTX
Tackling node failure in
PDF
Dbms viva questions
PPTX
data abstraction in DBMS
PPTX
Architecture of dbms
PDF
Data Abstraction
PPT
DBMS basics
PPTX
Data Models
Technical Note on DBMS
Tackling node failure in
Dbms viva questions
data abstraction in DBMS
Architecture of dbms
Data Abstraction
DBMS basics
Data Models

What's hot (10)

PPTX
Data abstraction in DBMS
PPTX
Database Management System
PPT
Dbms
 
PPTX
1.4 data independence
PPTX
Degrees of data abstraction
PPTX
Inter thread communication
DOC
Dbms Lecture Notes
PPTX
DBMS - Database Management System
PPTX
DBMS languages/ Types of SQL Commands
Data abstraction in DBMS
Database Management System
Dbms
 
1.4 data independence
Degrees of data abstraction
Inter thread communication
Dbms Lecture Notes
DBMS - Database Management System
DBMS languages/ Types of SQL Commands
Ad

Similar to Os (20)

PPTX
Operating system
PPTX
Processbejdndnnnnnjsnsgsvvdvvvguigv.pptx
PPTX
Processprehsjsjsjskakwkwkejjdbdbdjj.pptx
PDF
Lecture-4_Process Management.pdf
PPTX
5_Interprocess Communication.pptx
PPTX
Inter Process Communication-R.D.Sivakumar
PDF
Task communication
PPT
Inter-Process communication in Operating System.ppt
PPTX
Chapter 3b- Process Communication (1) (1)(1) (1).pptx
PDF
LECTURE 3,4 &5Communication.pdfDistributed systems for computer students both...
PDF
LECTURE 3,4 &5Communication.pdf distributed systems continued
PPT
Lecture 3.ppt of cs field using AI and machine management
PPTX
INTER PROCESS COMMUNICATION (IPC).pptx
PPTX
INTER PROCESS COMMUNICATION (IPC).pptx
PPTX
CSC 2205 OS Lecture 07 IPC on 7-10-2024 New.pptx
PPTX
interprocessn communication in os
PPT
Lecture03-IPC.ppt
PPTX
Inter process communication
PPTX
COMPLEXITY CHAPTER 4 LECTURE FOR FOURTH YEAR .pptx
PPTX
Chapter 3 - InterProcess Communication.pptx
Operating system
Processbejdndnnnnnjsnsgsvvdvvvguigv.pptx
Processprehsjsjsjskakwkwkejjdbdbdjj.pptx
Lecture-4_Process Management.pdf
5_Interprocess Communication.pptx
Inter Process Communication-R.D.Sivakumar
Task communication
Inter-Process communication in Operating System.ppt
Chapter 3b- Process Communication (1) (1)(1) (1).pptx
LECTURE 3,4 &5Communication.pdfDistributed systems for computer students both...
LECTURE 3,4 &5Communication.pdf distributed systems continued
Lecture 3.ppt of cs field using AI and machine management
INTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptx
CSC 2205 OS Lecture 07 IPC on 7-10-2024 New.pptx
interprocessn communication in os
Lecture03-IPC.ppt
Inter process communication
COMPLEXITY CHAPTER 4 LECTURE FOR FOURTH YEAR .pptx
Chapter 3 - InterProcess Communication.pptx
Ad

More from snegacmr (14)

PPTX
Process improvement
PPTX
Rest based xml web services
PPTX
Business intelligence
PPTX
Basic concepts of parallelization
PPTX
Deepi rdbms
PPTX
Computer network
PPTX
Dm powerpoint
PPTX
PPTX
Data mining
PPTX
PPTX
Query optimization
PPTX
Network security
PPTX
Discretization and concept hierarchy(os)
PPTX
System components (os)
Process improvement
Rest based xml web services
Business intelligence
Basic concepts of parallelization
Deepi rdbms
Computer network
Dm powerpoint
Data mining
Query optimization
Network security
Discretization and concept hierarchy(os)
System components (os)

Recently uploaded (20)

PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
composite construction of structures.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPT
Project quality management in manufacturing
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Welding lecture in detail for understanding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
web development for engineering and engineering
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
UNIT 4 Total Quality Management .pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
composite construction of structures.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Mechanical Engineering MATERIALS Selection
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Project quality management in manufacturing
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Foundation to blockchain - A guide to Blockchain Tech
Welding lecture in detail for understanding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
web development for engineering and engineering
CYBER-CRIMES AND SECURITY A guide to understanding
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf

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);