
- Operating System Tutorial
- OS - Home
- OS - Overview
- OS - Components
- OS - Types
- OS - Services
- OS - Properties
- OS - Processes
- OS - Process Scheduling
- OS - Scheduling algorithms
- OS - Multi-threading
- OS - Memory Management
- OS - Virtual Memory
- OS - I/O Hardware
- OS - I/O Software
- OS - File System
- OS - Security
- OS - Linux
- OS - Exams Questions with Answers
- OS - Exams Questions with Answers
- Operating System Useful Resources
- OS - Quick Guide
- OS - Useful Resources
- OS - Discussion
What is message passing technique in OS?
Message Passing provides a mechanism to allow processes to communicate and to synchronize their actions without sharing the same address space.
For example − chat programs on World Wide Web.
Now let us discuss the message passing step by step.
Step 1 − Message passing provides two operations which are as follows −
Send message
Receive message
Messages sent by a process can be either fixed or variable size.
Step 2 − For fixed size messages the system level implementation is straight forward. It makes the task of programming more difficult.
Step 3 − The variable sized messages require a more system level implementation but the programming task becomes simpler.
Step 4 − If process P1 and P2 want to communicate they need to send a message to and receive a message from each other that means here a communication link exists between them.
Step 5 − Methods for logically implementing a link and the send() and receive() operations.
Given below is the structure of message passing technique −
Characteristics
The characteristics of Message passing model are as follows −
Mainly the message passing is used for communication.
It is used in distributed environments where the communicating processes are present on remote machines which are connected with the help of a network.
Here no code is required because the message passing facility provides a mechanism for communication and synchronization of actions that are performed by the communicating processes.
Message passing is a time consuming process because it is implemented through kernel (system calls).
It is useful for sharing small amounts of data so that conflicts need not occur.
In message passing the communication is slower when compared to shared memory technique.
- Related Articles
- Differentiate between shared memory and message passing model in OS.
- What is the Routing in Message Passing Networks in Computer Architecture?
- Message Passing Model of Process Communication
- Message Passing vs Shared Memory Process communication Models
- IPC Problems Caused by Message Passing in a Distributed System
- What is Message Switching?
- Difference between Shared Memory Multiprocessors and Message-Passing Multiprocessors in Computer Architecture.
- What is Sequential Exception Technique?
- What is shared memory in the OS?
- What is a multithreading model in OS?
- What is a process scheduler in OS?
- What is Reverse Engineering Technique in Cybersecurity?
- Compare and analyze any two major variations of message passing systems
- What is "Processing Symbol Files" message in Xcode?
- What is Server Message Block (SMB)?
