MESSAGE
PASSING
Explaining process communication in distributed computing environments.
Presented By Group Members
Aurangzeb
Roll No: 1044
Ahmed Ameen
Roll No: 1072
Rehan
Roll No: 1050
Muneed Iqbal
Roll No: 1053
Islamia University Bahawalpur
Bahawalnagar Campus
Message passing is a communication method used in parallel and distributed computing. In this approach, a program is divided into multiple independent processes.
Independent Processes
Each process has its own memory and cannot directly access the memory of other processes.
Data Exchange
Processes communicate by sending and receiving messages, improving safety, scalability, and reliability.
Concept Visualized
The message passing model defines how independent processes interact in a system without shared memory. Each process executes separately and communicates explicitly through messages.
Architecture View
This model is commonly used in distributed systems and high-performance computing.
Communication in the message passing model is classified based on how processes exchange data.
Point-to-Point Communication
Involves direct interaction between two processes.
Direct Transfer
One process sends a message to exactly one receiving process. This method is used when precise and direct communication is required between tasks.
Collective Communication
Involves multiple processes participating in communication together.
One-to-Many
BROADCASTA single process sends the same message to multiple processes. Commonly used to distribute data or instructions.
Many-to-One
GATHERMultiple processes send data to a single process. Often used to collect results from different tasks.
Message Passing Interface
MPI is a standardized specification for implementing message passing. It is not a programming language but a set of rules and functions.
Portable • Efficient • Scalable
It provides mechanisms to initialize communication, send and receive messages, and terminate execution.
Initialize
Start communication environment
Transfer
Send and receive messages
Terminate
End execution gracefully
MPI Layer Abstraction
Before MPI, many incompatible message passing systems existed. MPI was introduced in the early 1990s to create a unified standard.
MPI-1
The Foundation
Basic point-to-point and collective communication
MPI-2
Expansion
Added dynamic processes and file input/output
MPI-3
Performance
Improved performance and memory handling
MPI-4
Modern Era
Enhanced scalability and modern hardware support