Previous | Next --- Slide 27 of 90
Back to Lecture Thumbnails
czh

Since the two threads have their own private address space, they can’t share variables and thus the only way to share data is through messages.

jasonalouda

Are there any pros/cons of using this message passing model regarding speed and utilization?

chenyecharchar

No explicit lock is required for mutual exclusion as there is no shared resource in the message passing paradigm

alrcdilaliaou

Technically, doesn't the message passing system itself need some kind of mutex though? Internally?

rubensl

I think synchronization is done in the form of blocking calls to send/receive and barriers as opposed to mutexes. There is no need for mutexes as there are no shared data.

tommynation

@jasonalouda, we can be more selective which data we are sharing between threads instead of instantiating everything that can be shared between threads.

Please log in to leave a comment.