inter-process communication approaches and its usage

adithyabondugula30 128 views 11 slides Jul 04, 2024
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

inter-process communication and its approaches


Slide Content

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 − 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. Barrier: A barrier does not allow individual processes to proceed until all the processes reach it. 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
Tags