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

Modern Operating System

Blog banner

Security in Operating Systems

Blog banner

CYBER SECURITY CHALLENGES

Blog banner

EVOLUTION OF MICROPROCESSOR

Blog banner

Microsoft Word

Blog banner

Memory Management

Blog banner

The Essential Guide to Dynamic Arrays vs. Linked Lists: Which to Use and When ?

Blog banner

Types of Threads

Blog banner

Deadlock and Starvation

Blog banner

Health and fitness

Blog banner

The Benefits of Practical Life Activities in Preschool

Blog banner

Multicore and Multithreading

Blog banner

Chicken Dum Biryani

Blog banner

Data Acquisition in Cyber Forensics

Blog banner

Google classroom

Blog banner

Define Instagram.

Blog banner

What is metaverse?

Blog banner

Consumer to consumer Business model

Blog banner

Visualization in Data Science

Blog banner

Models of Information Security.

Blog banner

Stay Close To Adventure In Arcadia, Florida At Oak Tree Hotel

Blog banner

Discover The Top 3 Places To Stay in London

Blog banner

Top 5 Tech Innovations of 2018

Blog banner

CYBERPEACEKEEPING: NEW WAYS TO PREVENT AND MANAGE CYBERATTACKS

Blog banner

Modern Operating System

Blog banner

Memory Management of Operating System(OS)

Blog banner

Constrained Management in IT

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

The Dark Web: A Breeding Ground for Cybercriminals – How to Guard Against Threats

Blog banner

Types of Hackers

Blog banner

GIS

Blog banner

What your Favorite colour says about You?

Blog banner

PHONE TECHNOLOGY

Blog banner

All you need to know about Website Traffic

Blog banner

Traditional Unix System

Blog banner

Explaining Buffer Overflow with Example

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

Dos (Denial of service) Attack

Blog banner

Semaphores

Blog banner

MENDELEY

Blog banner

Oracle Corporation

Blog banner