1 votes 1 votes How many concurrent schedules are conflict serializable of given transactions T1 and T2: Databases databases transaction-and-concurrency test-series + – Na462 asked May 12, 2018 Na462 551 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 3 votes 3 votes Only 2 conflict serial schedule is possible. From Transaction T1---->T2 . Only one conflict schedule is possible . We can not swap any data item . When we swap then it create a cycle. Similarlly for T2------->T1 abhishekmehta4u answered May 18, 2018 • selected May 18, 2018 by Na462 abhishekmehta4u comment Share Follow See all 2 Comments See all 2 2 Comments reply Na462 commented May 19, 2018 reply Follow Share Sir one doubt question says about concurrent schedules which are conflict serializable. You took two transaction and applied them serially. You could have interleaved them. By doing so will it create any different answer ? My doubt is sir, Schedule means exact sequence of transaction order to be followed since here there were only two transaction so it could be either of T1 --> T2 or vice versa, Say for example sir we had given the same question with three transaction then how would you deal that question. I guess you will try to find out the serial schedule if possible like:- T1-->T2-->T3 or T2-->T1-->T3 likewise total 6 combination and we will check which are possible by doing different interleaving of the operation. Am i right sir? 1 votes 1 votes abhishekmehta4u commented May 19, 2018 reply Follow Share Yea you are right. For three transaction .Question become complex. 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes Only two. Either complete T1 then complete T2 or complete T2 then complete T1. Any other schedule won't be conflict serializable. Akhilesh Singla answered May 12, 2018 Akhilesh Singla comment Share Follow See all 2 Comments See all 2 2 Comments reply Na462 commented May 18, 2018 reply Follow Share Sir plz tell the approach how u figured out the answer 0 votes 0 votes Prateek Raghuvanshi commented May 18, 2018 reply Follow Share Because conflict pairs order can't be changed ,since two conflict pairs are in T1 ,order can be changed and Same for T2. So either you have to execute T1 first then T2 or vice versa. 0 votes 0 votes Please log in or register to add a comment.