b. Process B issues its receive operation prior to process A issues its send operation.
Process A sends a single message to process B using connectionless IPC. To do so, A issues a send operation (specifying the message as argument) sometime during its execution, and B issues a receive operation. Suppose the send operation is blocking and the receive operation is non-blocking. Draw an event diagram (not sequence diagram) for each of the following scenario:
There are two possible scenarios:
(i) The data requested by the receive operation has not yet arrived, no data is delivered to the process. It is the receiving process’ responsibility to ascertain that it has indeed received the data and, if necessary, repeat the receive operation until the data has arrived. Process 1 is blocked indefinitely until process 2 reissues a receive request and an acknowledgement eventually arrives from host 2’s IPC facility.
(ii) The data requested by the receive operation has not yet arrived. The IPC facility of host 2 will notify process 2 when the data it requested has arrived, at which point process 2 may proceed to process the data. This scenario requires that process 2 provides a listener or event handler which can be invoked by the IPC facility to notify the process of the arrival of the requested data.
You might also like to view...
A(n) ________ terminates every statement in a program.
Fill in the blank(s) with the appropriate word(s).
All string objects are _______.
a) the same size b) always equal to each other c) preceded by at least one whitespace character d) immutable
When preparing for questions, there are guidelines to keep in mind, such as "If you don't understand a question, ask the questioner to rephrase it." Please name five more guidelines.
What will be an ideal response?
A common resolution for web products is ____ pixels per inch.
A. 52 B. 72 C. 125 D. 150