Question

Q5: In DBMS, a graph precedence is used to test whether a schedule of concurrent transactions is conflict serializable or not
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Q5.

1.

A precedence for transactions of schedule can be drawn by including the Transactions T1,T2,T3 as nodes of the graph and drawing a directed edge from one transaction to other i.e. Ti ->Tj, if an operation on an object is performed in transaction Ti before a conflicting operation on same object in transaction Tj.

In the given schedule S Transaction T1 performs write operation on B before Transaction T2 performs write operation on B (write-write conflict), so there will be a directed edge from T1 to T2, (T1->T2).

Transaction T2 performs write operation on A before Transaction T3 performs conflicting write operation on A (write-write conflict), so there will be a directed edge from T2 to T3,( T2->T3).

Resultant precedence graph:

Т2 Tз Т1

2.

For finding weather a Schedule is conflict serializable or not, its precedence graph is drawn , if there is cycle present in the precedence graph then the schedule is not conflict serializable.

From the precedence graph in part 1, there is no cycle present in it, so the schedule S is conflict serializable.

3.

Yes, it is possible to construct serial schedule S' that is conflict equivalent to S.

First all the operations of T1 should be performed, then all the operations of T2 should be performed, at the end all the operations of T3 should be performed.

T1 T2 T3

read(B)

write(B)

read(A)

write(A)

read(B)

write(B)

read(A)

write(A)

4.

A recoverable schedule is one in which if a transaction reads value written by other transaction the it should commit only after the other transaction has committed.

In the given schedule in part 4 the transaction T3 reads value of A which is written by T2 and T2 is not committed, and T3 commits before T2, so it is not recoverable schedule.

Add a comment
Know the answer?
Add Answer to:
Q5: In DBMS, a graph precedence is used to test whether a schedule of concurrent transactions...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT