Extend the definition of two-phase locking to apply to distributed transactions. Explain how this
is ensured by distributed transactions using strict two-phase locking locally.

What will be an ideal response?


Two-phase locking in a distributed transaction requires that it cannot acquire a lock at any server after it has
released a lock at any server.
A client transaction will not request commit (or abort) (at the coordinator) until after it has made all its requests
and had replies from the various servers involved, by which time all the locks will have been acquired. After
that, the coordinator sends on the commit or abort to the other servers which release the locks. Thus all locks
are acquired first and then they are all released, which is two-phase locking

Computer Science & Information Technology

You might also like to view...

To set the expire date of a persistent cookie, use PHP's ____ function and add to it an integer in seconds to specify when the cookie should be deleted.

A. date() B. expire() C. time() D. day()

Computer Science & Information Technology

What kind of software program delivers advertising content in a manner that is unexpected and unwanted by the user, and is typically included in malware?

A. adware B. keylogger C. spam D. Trojan

Computer Science & Information Technology

Identify the types of information typically included in a digital certificate.

What will be an ideal response?

Computer Science & Information Technology

The first two parameters in the addPoint method ________.

a) sets the height of the point source b) sets the strength percentage c) sets the color of the light d) sets the point source of the light

Computer Science & Information Technology