retagged by
305 views
0 votes
0 votes

Consider the following transactions with data items $\text{P}$ and $\text{Q}$ initialized to zero:

T1: read (P);
read (Q);
if P = 0 then Q : = Q + 1;
write (Q);

T2: read (P);
read (P);
if Q = 0 then P : = P + 1;
write (P);

 Any non-serial interleaving of $\text{T1}$ and $\text{T2}$ for concurrent execution leads to

  1. A serializable schedule
  2. A conflict serializable schedule
  3. A schedule for which a precedence graph cannot be drawn
  4. A schedule that is not conflict serializable
retagged by

Please log in or register to answer this question.

Answer:

Related questions

0 votes
0 votes
1 answer
1
admin asked Jan 5, 2019
477 views
We have a database table with relational schema $\text{R(XYZPQ)}:$$$\begin{array}{|c|c|c|c|c|} \hline \text{X} & \text{Y} & \text{Z} & \text{P} & \text{Q} \\\hline \text{...