Question Transactions Let T1 transfer $50 from A to B, and T2 transfer 10% of the balance from A to B. And example of a serial schedule in which T1 is followed by T2 is shown below: T1 T2 read(A) A:=A-50 write(A) read(B) B:=B+50 write(B) commit read(A) temp:=A*0.1 write(A) read(B) B:=B+temp write(B) commit Show a CONCURRENT execution of T1 and T2 that produces a SERIALIZABLE schedule in a table just like the one above.

7JDLK4 The Asker · Computer Science

Transactions

Let T1 transfer $50 from A to B, and T2 transfer 10% of the balance from A to B. And example of a serial schedule in which T1 is followed by T2 is shown below:

T1 T2
read(A)
A:=A-50
write(A)
read(B)
B:=B+50
write(B)
commit
read(A)
temp:=A*0.1
write(A)
read(B)
B:=B+temp
write(B)
commit

Show a CONCURRENT execution of T1 and T2 that produces a SERIALIZABLE schedule in a table just like the one above.

More