It is more efficient to communicate using shared variables than by message passing, for the price of simplicity and ease of implementation. |
However, message passing and shared memory primitives are equivalent - whatever can be done using shared memory primitives can be done using message passing and vice versa. |
Previous | Next | Top of chapter | Lecture Materials | Assignments | Code |