Assume the Election service isimplemented in RMI and must ensure that all votes are safely stored
even when the server process crashes. Explain how this can be achieved with reference to the
implementation outline in your answer to Exercise 5.16.

What will be an ideal response?


The state of the server must be recorded in persistent storage so that it can be recovered when the server is
restarted. It is essential that every successful vote is recorded in persistent storage before the client request is
acknowledged.
A simple method is to serialize the Vector of votes to a file after each vote is cast.
A more efficient method would append the serialized votes incrementally to a file.
Recovery will consist of de-serializing the file and recreating a new vector.

Computer Science & Information Technology

You might also like to view...

What is required for Apple iOS devices to establish a trust between the device and the Intune service?

A. certificate B. secret key C. PIN D. hash value

Computer Science & Information Technology

One interesting problem that occurs in distributed-control, token-passing systems, is that the token may get lost. Indeed, if a token is not properly circulating around the network, no station can transmit. Comment on this problem. What safeguards can be built into a token-passing network to determine whether a token has been lost and then to restore proper operation of the network?

What will be an ideal response?

Computer Science & Information Technology

A(n) ____________________ is a software program that performs a specific task, usually related to managing or maintaining a computer system.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

An IT security plan should include details of _________.

A. risks B. recommended controls C. responsible personnel D. all of the above

Computer Science & Information Technology