wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Message Passing in OS

profile
Vaibhav Chauhan
Sep 09, 2024
0 Likes
0 Discussions
62 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

Senseless Teeths

Blog banner

THE ACTORS LIFE

Blog banner

Importance of self defence for girls

Blog banner

Security Issues and Countermeasures

Blog banner

DMZ: Your Secret Weapon for Data Security

Blog banner

Digital black market or dark net poses a national security threat?

Blog banner

Modern Operating Systems.

Blog banner

virtual memory

Blog banner

Digital Marketing

Blog banner

The art of being alone

Blog banner

MUTUAL EXCLUSION

Blog banner

PODIO

Blog banner

Memory Management

Blog banner

India Digital Personal Data Protection Act, 2023

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

Working with Sniffers for monitoring network communication

Blog banner

gis substation

Blog banner

Carrot Pickle With Raisins (lagan Nu Achar)

Blog banner

Data Visualization in Decision-Making

Blog banner

Cache memory

Blog banner

RAID

Blog banner

Evolution of Operating system

Blog banner

GIS Mapping

Blog banner

File Sharing

Blog banner

Technological Advancement

Blog banner

Operating System

Blog banner

Dr. Venkadavarahan

Blog banner

Virus

Blog banner

Trends that began during the pandemic

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

Explain Multiprocessors

Blog banner

MENDELEY

Blog banner

File Organization and Access

Blog banner

How to Avoid being a Victim of Cybercrime

Blog banner

Virtual memory

Blog banner

Operating system

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

Footprinting

Blog banner

Data Lake

Blog banner

Strengthening Active Directory Security

Blog banner

Memory Management

Blog banner

Indian Culture and Tradition

Blog banner