

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Compare and analyze any two major variations of message passing systems
<p>Let us discuss about the below two types of message passing systems, which are as follows −</p><h2>Client Server Message Passing</h2><p>Consider an application that you are trying to read data from the filesystem. That means here the application is a client requesting the data from a server. This client or server model introduces many process states that are associated with message passing.</p><p>Initially, the server has to wait for a message to arrive from another system which is present somewhere else. At this point, the server is said to be receive-blocked.</p><p>When a message is received, the server enters into the READY state, and it is capable of running. Suppose, if it is the highest-priority READY process, it gets the CPU and can perform some processing. Since it is a server, it looks at the message received and decides what to do about it.</p><p>At some point, the server will complete whatever job the message told it to do, and then give a reply to the client.</p><p><img src="https://www.tutorialspoint.com/assets/questions/media/60360/transition of server.jpg" class="fr-fic fr-dib" width="206" height="127"></p><p>Now let us switch to the client-side. Starting the client is running along, and consuming CPU, till it decides to send a message. The client changed from READY to send blocked or reply-blocked, based on the state of the server that it sent a message to.</p><p><img src="https://www.tutorialspoint.com/assets/questions/media/60360/transition of client.jpg" class="fr-fic fr-dib" width="211" height="201"></p><p>Generally, we will see the reply-blocked state is more often than the send-blocked state. Because the reply-blocked state means −</p><p>The server has received the message and is now processing it. At a point, the server completes processing and will reply to the client. The client is blocked waiting for this reply.</p><p>Contrast that with the send-blocked state.</p><p>The server did not receive the message, because it was busy handling other messages first. When the server gets receiving a client message, then we will go from the send blocked state to the reply-blocked state.</p><h2>Network-distributed Message passing</h2><p>Let us inherit the characteristics of a network: they can become network-distributed with far less work than on other systems. But the benefit that we find most useful is that they let you test software in a nice, modular manner.</p><p>We are probably working on large projects where many people have to provide different pieces of software. Of course, some of these people are done sooner or later than others.</p><p>Generally, it has problems at two stages, which are as follows −</p><ul class="list"><li><p>Starting from the concept at definition time, it's hard to decide where one person's development effort ends and another person begins.</p></li><li><p>Then at testing or integration time, it is not possible to do full systems integration testing because all the pieces are not available.</p></li></ul><p>The individual components of a concept can be decoupled easily, leading to a very simple design and reasonably simple testing.</p><p>If we want to think about this in terms of existing paradigms, it is similar to the concept that is used in Object-Oriented Programming (OOP).</p>
- Related Questions & Answers
- Message Passing Model of Process Communication
- Differentiate between shared memory and message passing model in OS.
- What is message passing technique in OS?
- Variations of Pairing Heaps
- Message Passing vs Shared Memory Process communication Models
- Difference between Shared Memory Multiprocessors and Message-Passing Multiprocessors in Computer Architecture.
- Signals and Systems: Classification of Systems
- What are the Variations of DES?
- Compare the content of two StringBuilders
- What is the Routing in Message Passing Networks in Computer Architecture?
- Signals and Systems – Filter Characteristics of Linear Systems
- Compare two arrays of single characters and return the difference? JavaScript
- Signals and Systems: Linear and Non-Linear Systems
- Signals and Systems: Invertible and Non-Invertible Systems
- What are different variations of for loop iterations?
Advertisements