wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Message Passing in OS

profile
Vaibhav Chauhan
Sep 09, 2024
0 Likes
0 Discussions
63 Reads

Message Passing


 When processes interact with one another, two fundamental requirements must be satisfied: synchronization and communication. Processes need to be synchronized to enforce mutual exclusion; cooperating processes may need to exchange information. One approach to providing both of these functions is message passing. Message passing has the further advantage that it lends itself to implementation in distributed systems as well as in shared-memory multiprocessor and uniprocessor systems.


Message-passing systems come in many forms. In this section, we provide a general introduction that discusses features typically found in such systems. The actual function of message passing is normally provided in the form of a pair of primitives:


send (destination, message)

` receive (source, message)


This is the minimum set of operations needed for processes to engage in message passing. A process sends information in the form of a message to another process designated by a destination . A process receives information by executing the receive primitive, indicating the source and the message . 


Synchronisation:


 The communication of a message between two processes implies some level of synchronization between the two: The receiver cannot receive a message until it has been sent by another process. In addition, we need to specify what happens to a process after it issues a send or receive primitive.


Consider the send primitive first. When a send primitive is executed in a process, there are two possibilities: Either the sending process is blocked until the message is received, or it is not. Similarly, when a process issues a receive primitive, there are two possibilities:


1. If a message has previously been sent, the message is received and execution continues.

2. If there is no waiting message, then either

(a) the process is blocked until a message arrives, or

(b) the process continues to execute, abandoning the attempt to receive. 


Comments ()


Sign in

Read Next

Measuring IT Risk

Blog banner

Time Series Analysis

Blog banner

semaphores

Blog banner

Travel: Everything Everywhere!

Blog banner

MySQL

Blog banner

The Importance of Financial Literacy for College Students

Blog banner

RSA (Rivest-Shamir-Adelman) Algorithm

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

File management in os

Blog banner

Regression Analysis

Blog banner

Image Steganography: Hiding Secrets in Plain Sight

Blog banner

Celebrate Raksha Bandhan with Premium Dry Fruit Gift Hampers

Blog banner

WORKFRONT SOFTWARE

Blog banner

LTE Technology

Blog banner

Article on Team Work

Blog banner

Why is it hard to design an Operating Systems ?

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

Fun Christmas Activities For Toddlers & Kids

Blog banner

How Seasons affect online sales and how to overcome them

Blog banner

Buffers in Operating Systems

Blog banner

Gamer life

Blog banner

Major achievement

Blog banner

Why Moms Are Choosing Customised School Accessories Over Generic Products

Blog banner

SEIZING DIGITL EVIDENCE AT THE SCENE

Blog banner

Sensory Play for Toddlers: Boosting Curiosity Through Touch, Sound, and Colour

Blog banner

TRELLO

Blog banner

Pilgrimage at LOC: A privilege and a paradox

Blog banner

Population

Blog banner

Privacy-Enhancing Computation Techniques

Blog banner

Disk cache

Blog banner

Stop Racism

Blog banner

Why Should You Schedule Tweets on Twitter?

Blog banner

Safe Learning Spaces: Why Preschool Environment Matters More Than Ever Today

Blog banner

On-Page SEO

Blog banner

What is process

Blog banner

The Right way of cooking

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

GIS Bharat Maps

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Dental Problems That Start Small But Should Never Be Ignored

Blog banner

Security requirements for Safe E-Payments

Blog banner

Cache Memory

Blog banner