A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. 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 T1 and T2 for concurrent execution leads to
a. A serializable schedule
b. A schedule that is not conflict serializable
c. A conflict serializable schedule
d. A schedule for which a precedence graph cannot be drawn
Answer:A schedule that is not conflict serializable
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: