0% found this document useful (0 votes)
3 views

Parallel Computing and Mobile System Computer Engineering 3

The document outlines the differences between OpenMP and MPI in parallel computing. OpenMP is designed for parallel programming on a single machine with shared memory, while MPI is used for distributed systems where processes communicate via message passing. Additionally, it mentions an MPI program in C for simulating a distributed solar power data collection system.

Uploaded by

anashemasese11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Parallel Computing and Mobile System Computer Engineering 3

The document outlines the differences between OpenMP and MPI in parallel computing. OpenMP is designed for parallel programming on a single machine with shared memory, while MPI is used for distributed systems where processes communicate via message passing. Additionally, it mentions an MPI program in C for simulating a distributed solar power data collection system.

Uploaded by

anashemasese11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PARALLEL COMPUTING AND MOBILE SYSTEM

COMPUTER ENGINEERING 3.2


ASSIGNMENT 2

a) Difference between OpenMP and MPI

1. OpenMP (Open Multi-Processing):

o Purpose: Used for parallel programming within a single machine (single memory
space).

o How it works: OpenMP divides tasks into threads that all run concurrently but
share the same memory.

o Usage: It’s easier to implement when you have a single machine and you want
multiple threads to handle different parts of a task (e.g., loops).

o Memory: Shared memory.

2. MPI (Message Passing Interface):

o Purpose: Used for parallel programming in distributed systems, where multiple


processes might run on multiple machines.

o How it works: Each process runs independently and communicates (sends


messages) with other processes. Processes don’t share memory, so they exchange
data through message passing.

o Usage: It's best when you have multiple machines or processes that need to
communicate, especially in high-performance computing scenarios.

o Memory: Distributed memory.

b) An MPI program in c that that simulates the distributed solar power data collection and
reporting system using message passing

You might also like