Sunday, July 05, 2020

IPC model | Shared memory model | Message passing model in OS

Inter-Process Communication | Shared Memory Model | Message Passing Model in Operating System

Software Engineering,,mysoftwarenotes,software developer,software,operating system tutorial,operating system course,ipc in operating system,ipc in operating system in hindi,shared memory model in os,message passing model in,message passing model in os,message passing model in operating system,message passing model in distributed system,symmetric communication in os,asymmetric communication is os,os in hindi easy engineering classes

•IPC – (Inter-Process Communication) is the capability which allow two process of the computer to communicate with each other.

•Where will be those process?
•Its not important for process to be in the same computer they can be in same computer or in different computer which are connected over the network.

•There are two fundamental model of Inter Process Communication.
•1) Shared Memory Model
•2) Message Passing Model

Shared Memory Model
•This model made a region of memory which get shared between the cooperating processes.

•The process who want to share information read and write the data from this location.

•This is the fast model as compare to the Message passing model.

Where this shared memory is located?

You may find this shared memory under the address space of the process which want to share data with other processes.

•Yup, That’s true that OS usually prevent the process to inter in the memory of other process but in this scenario, we bypass this prevention.
•OR the process itself allow the OS to remove this protection from its memory for the cooperating processes.

Message Passing Model
In this model two process communicate with each other by passing messages.

•It is easy to implement as compare to shared memory model.

•It is useful to exchange small amount of data.

•This system is much more useful in the distributed environment when the two computers are on the same network and their processes want to share the data.

Message Passing Model Operations:

Message passing model provide two operations

In sending message and receiving message, there are two more concepts.
1.Direct Communication
    1.1.Symmetric Communication
    1.2.Asymmetric Communication
2.Indirect Communication

Direct Communication:
In direct communication sender and receiver mention the name of the process from which they want to receive messages or to whom they want to send messages.

In Symmetric communication both sender and receiver mention the name of each other.

in Asymmetric Communication Only sender mention the name of the receiver, receive the message from the ID.

Indirect Communication:
•In this system messages are sent and receive from the mailbox.

•Mailbox is a place where two or more process store and remove messages.

•Processes communicate sharing one mailbox.

Video Lecture on the Topic

No comments:

Post a Comment