If a cohort in a distributed transaction has performed only read operations, the two-phase commit protocol can be simplified. When the cohort receives the prepare message, it gives up its locks and terminates its participation in the protocol. Explain why this simplification of the protocol works correctly.

What will be an ideal response?


The cohort terminates it participation in the protocol before it is determined whether the distributed transaction, T, commits or aborts. Ordinarily, if T aborts, the cohort must rollback the subtransaction, but with a read-only transaction, there are no
changes to roll back. It makes no difference whether the cohort releases locks when the prepare message is received or when the protocol terminates (as would be the case without the simplification) because any other transaction that writes an item that the cohort had read would have to follow T in the global ordering in either case.

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT one of the ways that Facebook is useful for professional networking?

A) Workers at all levels use Facebook to connect with other business people in their cities. B) Workers at all levels use Facebook to connect with other professionals in their industries. C) Facebook is the second most popular site for employers seeking to fill new positions. D) Facebook is only used by high-level executives to seek out new employment.

Computer Science & Information Technology

For any weight stroke, a 0-dash with a Round Cap will create a dotted stroke as long as the gap is ____.

A. wide enough B. thin enough C. visible enough D. on the top of the stack

Computer Science & Information Technology

What is the maximum number of watts that is supported in the IEEE 802.3at standard?

A) 15.4 B) 32.4 C) 50.4 D) 34.5

Computer Science & Information Technology

Match the following terms to their meanings: I. calculated field II. constant III. data redundancy IV. data type V. foreign key A. date of birth is a common field example B. field in one table that is also the primary key of another table C. produces a value from one or more existing, often numeric, fields D. the unnecessary storing of duplicate data E. determine the type of entry that can be

made into a field What will be an ideal response?

Computer Science & Information Technology