Question: 1 . 0 p 2 a There are two transactions T 1 and T 2 for which the execution order of the individual operations look

1.0p2a
There are two transactions T1 and T2 for which the execution order of the individual operations look like this:
T1: read1(x); read1(y); write1(x); write1(y).
T2: read2(x); write2(x).
Here, x and y refer to different rows in the database. Assume that the read and write operations correspond to the following SQL queries, where x and y are refer to values of isbn, which is the primary key of the table Book.
read1(x): SELECT titel FROM Boek WHERE isbn ='0136067018';
read1(y): SELECT titel FROM Boek WHERE isbn ='0321228383';
write1(x): UPDATE Boek SET titel = titel ||' deel 1' WHERE isbn ='0136067018';
write1(y): UPDATE Boek SET titel = titel ||' deel 1' WHERE isbn ='0321228383';
read2(x): SELECT titel FROM Boek WHERE isbn ='0136067018';
write2(x): UPDATE Boek SET titel = titel ||' deel 2' WHERE isbn ='0136067018';
Answer the following questions:
Which execution sequence for the operations is a valid schedule of these transactions and serializable?
read2(x); read1(x); write2(x); read1(y); write1(x); write1(y);
write1(x); read2(x); read1(x); write2(x); read1(y); write1(y);
read1(x); read1(y); write1(x); read2(x); write2(x); write1(y);
write2(x); read1(x); read1(y); read2(x); write1(x); write1(y);
bookmark_border1.0p2b
We want to limit the concurrent execution of transactions T1 and T2 as little as possible, but in such a way that T1 will not do dirty reads. Select an isolation level for each transaction
T1: SERIALIZABLE
T2: SERIALIZABLE
T1: SERIALIZABLE
T2: READ UNCOMMITTED
T1: READ COMMITTED
T2: READ UNCOMMITTED
T1: READ COMMITTED
T2: SERIALIZABLE
1a
1b
1c
1d
1e
1f

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!