Question: Consider database variables X and Y , initialized to 1 1 and 2 7 , respectively. Transaction T 1 reads X and writes its value

Consider database variables X and Y, initialized to 11 and 27, respectively. Transaction T1 reads X and writes its value to Y. Transaction T2 reads Y and writes its value to X. What are the possible final results for X and Y after running T1 and T2 at the same time, under the following isolation policies:
1. Read Committed
2. Snapshot Isolation
3. Serializable
Assume that if any transaction is aborted, it will be run again to completion.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!