A client makes RMIs to a server. The client takes 5 ms to compute the arguments for each request,
and the server takes 10ms to process each request. The local OS processing time for each send or
receive operation is 0.5ms, and the network time to transmit each request or reply message is 3
ms. Marshalling or unmarshalling takes 0. 5 ms per message.
Estimate the time taken by the client to generate and return from 2 requests (i) if it is single-threaded, and (ii)
if it has two threads which can make requests concurrently on a single processor. Is there a need for
asynchronous RMI if processes are multi-threaded?
What will be an ideal response?
(i) Single-threaded time: 2(5 (prepare) + 4(0. 5 (marsh/unmarsh) +0. 5 (local OS)) + 2*3 (net)) + 10 (serv))
= 50 ms.
(ii) Two-threaded time: (see figure 6.14) because of the overlap, the total is that of the time for the first
operation’s request message to reach the server, for the server to perform all processing of both request and
reply messages without interruption, and for the second operation’s reply message to reach the client.
This is: 5 + (0.5+0.5+3) + (0.5+0.5+10+0.5+0.5) + (0.5+0.5+10+0.5+0.5) + (3 + 0.5+0.5)
= 37ms.
You might also like to view...
You can insert rows above or below the selected row
Indicate whether the statement is true or false
Which of the following is not true about statistical functions?
a. The MEDIAN function finds the average value that has as many values above it in the group as are below it. b. The SUM function is a predefined formula that adds all the numbers in a selected range of cells. c. Statistical functions, which include the AVERAGE, MEDIAN, MIN, and MAX functions, are useful to analyze a group of measurements. d. The AVERAGE function adds a group of values, and then divides the result by the number of values in the group.
In Alice, a turn(FORWARD, ...) or turn(BACKWARD, ...) message changes an object’s pitch.
Answer the following statement true (T) or false (F)
Which of the following is a variable declaration statement?
a. int total;
b. #include