0 0 votes Account on the following statements IF Conflict Serial schedule then it is ALWAYS possible under 2PL Databases databases conflict-serializable + – pC 1.7k views answer comment Share Follow Print See all 7 Comments 7 7 Comments reply Show 4 previous comments focus _GATE commented Sep 18, 2016 i edited by focus _GATE Oct 7, 2016 reply Follow flag If the precedence graph contain no cycle than .the schedule is css and also .it is always possible under 2pl ! 2pl here means .there will no denied of lock requests necessary locks will be applies succesfully to the schedule . 0 0 replyShare Akriti sood commented Oct 7, 2016 reply Follow flag whats the answr then..?is it possible always or not? i dun think that it is always possible consider this schedule for example: here,T1 wont get XL(c)_ because T2 has already put S(C) and it wont release that lock before W(D) is performed. so order is not retained as locks will be released only in phase 2. 0 0 replyShare Anu007 commented Dec 6, 2017 reply Follow flag correct will be if 2PL then must be CSS or if not CSS then not 2PL 0 0 replyShare Please log in or register to add a comment.
–1 –1 vote @AKhilNadh. Sorry for the previous incorrect answers. Look at this conflict serializable schedule. T1 T2 ------------------------------------ Shared(A) R(A) unlock(A) exclusive(A) W(A) unlock(A) ------------------------------------> At this point,T1 cannot acquire lock on B under 2PL. W(B) So, answer is every conflict serializable schedule is not always possible under 2PL. Sushant Gokhale answered Sep 20, 2016 Sushant Gokhale comment Share Follow See all 3 Comments 3 3 Comments reply pC commented Sep 20, 2016 reply Follow flag @Sushant_Gokhale T2 is not using data item B so T1 can peacefully update 'B' Read the comment by@cse23 It is the perfect answer. If conflict serialisable then it is view serialisable Every serial schedule will always be in 2PL . 2PL is used to implement serialisablity among the schedules 0 0 replyShare Sushant Gokhale commented Sep 21, 2016 reply Follow flag @Akhil. What do you want to prove? First, there is diff betn serial and serializable schedule. Second, you are saying that 2PL is used to implement serializability. But, question asks you prove vice-verssa. Third, I know that every conflict serializable is also view serializable, but every conflict serializable is not possible under 2PL. I have already given an example. 0 0 replyShare cse23 commented Oct 7, 2016 reply Follow flag I don't think so I mean if any schedule follows 2PL then it ensures seriazibility but if a schedule is conflict serializable it may or may not ensure 2-phase locking.. there can be chances that order of conflict operations are same in the transaction(no cycle) but Lock point(point at which any transaction acquire the last lock) order is not ensuring serializability(may result in cycle in precedence graph) 3 3 replyShare Please log in or register to add a comment.