Reputation: 3009
I've been reading about shared memory and message passing and I believe shared memory is faster than message passing, but I can't seem to come across the pros for message passing. Does message passing have any advantages over shared memory?
Upvotes: 2
Views: 4844
Reputation: 1571
The biggest advantage of message passing is that it is easier to build massively parallel hardware. Message passing programming models tend to be more tolerant of higher communication latencies.
Whether shared memory or message passing is faster depends on the problem being solved, the quality of the implementations, and the system(s) it is running on. For example, on a single server, it will probably be easier and higher performance to use a shared memory programming environment. Across a distributed cluster, it will probably be faster to use a message passing library.
Upvotes: 4