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

ADD A SPICE TO YOUR LIFE.

Blog banner

CYBERPEACEKEEPING: NEW WAYS TO PREVENT AND MANAGE CYBERATTACKS

Blog banner

Spitting Pink in the Sink: Why Your Gums Randomly Bleed

Blog banner

Uniprocessor scheduling

Blog banner

Procedure For Corporate High-Tech Investigations

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

Meal Maharaj — 3 CP, 5 CP, 8 CP. Same Love, Different Portions

Blog banner

Virtual Machine

Blog banner

Remote Work in 2026

Blog banner

Access management

Blog banner

Sarasota Polo Club, Myakka City — A Luxury Day Trip from Oak Tree Hotel, Arcadia

Blog banner

File Management

Blog banner

The 60-Minute Window: What to Do (And What NOT to Do) When You Knock Out a Tooth

Blog banner

Life

Blog banner

Maharashtrian culture: Tradition, Art, Food

Blog banner

Memory Management

Blog banner

Modern operating system

Blog banner

Fault Tolerance

Blog banner

Why Peace River Is Florida’s Most Underrated Outdoor Adventure Destination?

Blog banner

Metasploit

Blog banner

Why Extreme Opinions Are Rising: Psychological Insights into Society’s Divides

Blog banner

Precision-Recall in Data Science

Blog banner

Deadlock Prevention

Blog banner

VIRTUAL MACHINES

Blog banner

INDIAN CHEAPEST COSMETICS BRAND

Blog banner

Big Data Architecture

Blog banner

The New Rules of UI/UX Design Every Website Must Follow in 2026

Blog banner

Esri India launches Policy Maps.

Blog banner

Virtual memory

Blog banner

Cyber-crime Investigation and Future Directions

Blog banner

Microsoft Windows Overview

Blog banner

John Titor: The Time Traveler

Blog banner

Security requirements for Safe E-Payments

Blog banner

Things You Should Leave Behind In 2025, Whilst In 2026

Blog banner

internet email and it's applications

Blog banner

10 Things To Do On Valentine's Day If You're Single

Blog banner

Importance of internet

Blog banner

Virtual memory

Blog banner

What is a Malware ?

Blog banner

Why Meal Maharaj Prioritises Seasonal Vegetables in Every Meal Box

Blog banner

Multiple processor scheduling

Blog banner

Street foods

Blog banner