What are the advantages of Message Passing Architecture?
Answers
Answer:
ᴀɴ ᴀᴅᴠᴀɴᴛᴀɢᴇ ᴏꜰ ᴍᴇꜱꜱᴀɢᴇ ᴩᴀꜱꜱɪɴɢ ᴍᴏᴅᴇʟ ɪꜱ ᴛʜᴀᴛ ɪᴛ ɪꜱ ᴇᴀꜱɪᴇʀ ᴛᴏ ʙᴜɪʟᴅ ᴩᴀʀᴀʟʟᴇʟ ʜᴀʀᴅᴡᴀʀᴇ. ᴛʜɪꜱ ɪꜱ ʙᴇᴄᴀᴜꜱᴇ ᴍᴇꜱꜱᴀɢᴇ ᴩᴀꜱꜱɪɴɢ ᴍᴏᴅᴇʟ ɪꜱ qᴜɪᴛᴇ ᴛᴏʟᴇʀᴀɴᴛ ᴏꜰ ʜɪɢʜᴇʀ ᴄᴏᴍᴍᴜɴɪᴄᴀᴛɪᴏɴ ʟᴀᴛᴇɴᴄɪᴇꜱ. ɪᴛ ɪꜱ ᴀʟꜱᴏ ᴍᴜᴄʜ ᴇᴀꜱɪᴇʀ ᴛᴏ ɪᴍᴩʟᴇᴍᴇɴᴛ ᴛʜᴀɴ ᴛʜᴇ ꜱʜᴀʀᴇᴅ ᴍᴇᴍᴏʀy ᴍᴏᴅᴇʟ.
Explanation:
Message passing model allows multiple processes to read and write data to the message queue without being connected to each other. Messages are stored on the queue until their recipient retrieves them. Message queues are quite useful for interprocess communication and are used by most operating systems.
A diagram that demonstrates message passing model of process communication is given as follows −
message passing model of process communication
In the above diagram, both the processes P1 and P2 can access the message queue and store and retrieve data.
An advantage of message passing model is that it is easier to build parallel hardware. This is because message passing model is quite tolerant of higher communication latencies. It is also much easier to implement than the shared memory model.
However, the message passing model has slower communication than the shared memory model because the connection setup takes time.