Concurrency Control questions — page 2 of 2

Q29

GATE CS 2014 CS-1TransactionsMCQ2 marks−2/3 if wrong
Consider the following four schedules due to three transactions (indicated by the subscript) using read and write on a data item xx, denoted by r(x)r(x) and w(x)w(x) respectively. Which one of them is conflict serializable?
Show answer without attempting

Answer: D

Q27

GATE CS 2012 CSTransactionsMCQ2 marks−2/3 if wrong
Consider the following transactions with data items P and Q initialized to zero:
T1 : read (P);
     read (Q);
     if P = 0 then Q := Q + 1 ;
     write (Q).

T2 : read (Q);
     read (P);
     if Q = 0 then P := P + 1 ;
     write (P).
Any non-serial interleaving of T1T_1 and T2T_2 for concurrent execution leads to
Show answer without attempting

Answer: B

0/20 correct0 marks

Related topics in Transactions