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

E-mail security

Blog banner

Footprinting

Blog banner

How To Invest in Indian Stock Market For Beginners. ~ Tutorial 2 (NSDL And CSDL) Continued...

Blog banner

Social Engineering Attacks

Blog banner

10 Interesting facts you should know!!!

Blog banner

I/O Buffering

Blog banner

File management

Blog banner

Dekkers Algorithm : Ensuring Safe Process Synchronization

Blog banner

Operating System

Blog banner

A Heartfelt Act of Kindness

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

'Positivity in life'

Blog banner

Cyber Security Standards

Blog banner

IT service level agreement

Blog banner

Introduction my self

Blog banner

File Management

Blog banner

How I use google in my daily life

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

Network Security Risks

Blog banner

Gis in agriculture and farming

Blog banner

Danger assessment in GIS

Blog banner

CYBERBULLYING: Negative comments!

Blog banner

New Ransomware Encrypts Your Android And Then Changes PIN Lock

Blog banner

Paginng In OS

Blog banner

virtual machine

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

VIRTUAL MACHINES

Blog banner

The Truth Behind Viral DIY Dental Hacks

Blog banner

Why Soft Skills Matter as Much as Grades?

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

Biometric Authentication Vulnerabilities

Blog banner

Types of Hackers.

Blog banner

OS assignment 3

Blog banner

TECHNOLOGY : BOON OR CURSE ?

Blog banner

10 Signs your Computer has Virus

Blog banner

Sweet and Sour Mango Pickle (Gol Keri)

Blog banner

Memory managment

Blog banner

Dangers of Using Public WiFis

Blog banner

Cache Memory

Blog banner

Note Taker App

Blog banner

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

Blog banner

Threading

Blog banner