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...
Once you have determined the assets as well as processes and functions of an organization, it is time to determine what ________ is assigned to each of the different aspects so that the organization can recover its business
Fill in the blank(s) with correct word
By default, the Administrator role can perform all tasks in Hyper-V on all VMs. What would be an administrators first step if they wished to allow a junior administrator the ability to perform certain tasks in Hyper-V Manager without having broader administrative control?
A. Create a new task definition in Authorization Manager B. Assign a new task definition in Group Policy C. Assign the junior administrator the administrator role D. Create a new task group in Server Manager