INTER-PROCESS
COMMUNICATION
What is Inter-process Communication in
OS?
• Inter-processor communication is used for interchanging useful
information among various regions in one or more processes
(or programs).
• This communication could involve letting another process know
that some event has occurred or the transferring of data from
one process to another.
Inter-process communication
PROCESS 1 PROCESS 2
Synchronization in Inter Processor
Communication
• Synchronization is an essential part of inter-process
communication. It refers to a case where the data used to
communicate between processors is control information. It is
either given by the inter-process control mechanism or handled
by the communicating processes.
• It is required to maintain the correct sequence of processes and
to make sure equal access to shared writable data.
• Multiprocessor systems have various mechanisms for the
synchronization of resources. Below are some methods to
provide synchronization are as follows −
1.Mutual Exclusion :Mutual exclusion requires that only one
process thread can enter the critical section at a time.
• Semaphore : A semaphore is a variable that controls the access to a
common resource by multiple processes.
1.Barrier: A barrier does not allow individual processes to proceed
until all the processes reach it.
2.Spinlock: : This is a type of lock. The processes trying to acquire
this lock wait in a loop while checking if the lock is available or not.
Approaches for Inter Process Communication
in OS
Why Inter-Process Communication (IPC) is
Required?
There are various reasons to use inter-process communication
for sharing the data. Here are some of the most important
reasons that show the importance of inter-process
communication:
• It helps in speeding up modularity
• It is computational.
• It gives the privilege of separation as well as connection.
• Convenience
• It allows the operating system to communicate and synchronize
its actions.
THANK YOU

inter-process communication approaches and its usage

  • 1.
  • 2.
    What is Inter-processCommunication in OS? • Inter-processor communication is used for interchanging useful information among various regions in one or more processes (or programs). • This communication could involve letting another process know that some event has occurred or the transferring of data from one process to another. Inter-process communication PROCESS 1 PROCESS 2
  • 3.
    Synchronization in InterProcessor Communication • Synchronization is an essential part of inter-process communication. It refers to a case where the data used to communicate between processors is control information. It is either given by the inter-process control mechanism or handled by the communicating processes. • It is required to maintain the correct sequence of processes and to make sure equal access to shared writable data.
  • 4.
    • Multiprocessor systemshave various mechanisms for the synchronization of resources. Below are some methods to provide synchronization are as follows − 1.Mutual Exclusion :Mutual exclusion requires that only one process thread can enter the critical section at a time. • Semaphore : A semaphore is a variable that controls the access to a common resource by multiple processes. 1.Barrier: A barrier does not allow individual processes to proceed until all the processes reach it. 2.Spinlock: : This is a type of lock. The processes trying to acquire this lock wait in a loop while checking if the lock is available or not.
  • 5.
    Approaches for InterProcess Communication in OS
  • 10.
    Why Inter-Process Communication(IPC) is Required? There are various reasons to use inter-process communication for sharing the data. Here are some of the most important reasons that show the importance of inter-process communication: • It helps in speeding up modularity • It is computational. • It gives the privilege of separation as well as connection. • Convenience • It allows the operating system to communicate and synchronize its actions.
  • 11.