Distributed Systems Assignment 6
Distributed Systems Assignment 6
DISTRIBUTED SYSTEMS
1.What is meant by concurrency control and how it is important in
distributed systems?
Locking:
In a distributed transaction, the locks on an object are held locally (in the same
server). The local lock manager can decide whether to grant a lock or make the
requesting transaction wait.
1. Request: The front end attaches a unique identifier to the request and
multicasts it to the group of replica managers, using a totally ordered, reliable
multicast primitive. The front end is assumed to fail by crashing at worst. It
does not issue the next request until it has received a response.
2. Coordination: The group communication system delivers the request to every
correct replica manager in the same (total) order.
1. Request: The front end issues the request, containing a unique identifier, to
the primary replica manager.
4. Agreement: If the request is an update, then the primary sends the updated
state, the response and the unique identifier to all the backups. The backups
send an acknowledgement.
5. Response: The primary responds to the front end, which hands the response
back to the client.
TRANSACTION RECOVERY:
The requirements for durability and failure atomicity are not really independent
of one another and can be dealt with by a single mechanism – the recovery
manager. The tasks of a recovery manager are:
Entries in recovery file • To deal with recovery of a server that can be involved
in distributed transactions, further information in addition to the values of the
objects is stored in the recovery file.