81 81 votes For the schedule given below, which of the following is correct: $$\begin{array}{ll} \text{1} & \text{Read A} & \text{} \\ \text{2} & \text{} & \text{Read B} \\ \text{3} & \text{Write A} & \text{} \\ \text{4} & \text{} & \text{Read A} \\ \text{5} & \text{} & \text{Write A} \\ \text{6} & \text{} & \text{Write B} \\ \text{7} & \text{Read B} & \text{} \\ \text{8} & \text{Write B} & \text{} \\\end{array}$$ This schedule is serializable and can occur in a scheme using 2PL protocol This schedule is serializable but cannot occur in a scheme using 2PL protocol This schedule is not serializable but can occur in a scheme using 2PL protocol This schedule is not serializable and cannot occur in a scheme using 2PL protocol Databases gate1999 databases transaction-and-concurrency normal + – Kathleen 22.7k views answer comment Share Follow Print See all 7 Comments 7 7 Comments reply Niraj Singh 2 commented Jan 16, 2019 i edited by Niraj Singh 2 Oct 30, 2020 reply Follow flag "2pl guarantees serializability but it does not permit all serializable schedule" 5 5 replyShare Shubhm commented Jul 21, 2019 reply Follow flag stmt - we must know that if schedule is 2pl(P) then it is serialzable(Q) too So,P->Q which is equivalent to its contrapositive parts i.e ~Q->~P which states that if not serializable then not 2pl. In Schedule given we can easily prove that it is not serializable and hence not occur in 2pl. 19 19 replyShare mohan123 commented Nov 27, 2019 reply Follow flag if schedule CSS and No blind write then that schedule not VSS 1 1 replyShare paraskk commented Jan 28, 2020 reply Follow flag @Devesh_Kumar Bro what is Basic Ts here and what is the entire circle stand for ?? Also where would be Strict 2PL, Rigorous 2PL and Conservative 2PL 1 1 replyShare ꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂ commented Oct 5, 2024 reply Follow flag to approach this one Serializability is same as VS if only Read/ Write operation Given if There is no Blind Write CS=VS To Check $2PL$ First check if No CS if its true then no point of checking $2PL$ else u've to manually check taking the locks 3 3 replyShare Mayank_Pant commented May 15 reply Follow flag if there is no calculations involve in transactions then serializability check is equivalent with view equivalent. hope it helps 0 0 replyShare Kishor12 commented Aug 10 reply Follow flag This schedule is not serializable and cannot occur in a scheme using 2PL protocol If conflict serializable schedule then it is 2PL 0 0 replyShare Please log in or register to add a comment.
80 80 votes If we draw the precedence graph we get a loop,and hence the schedule is not conflict serializable.There is no blind write too so ,there is no chance that view serializability can occur.Now 2pl ensures CS.Since possiblity of CS is ruled out at the onset,so schedule cannot occur in 2PL.Ans d) Jarvis answered May 28, 2015 Jarvis comment Share Follow See all 18 Comments 18 18 Comments reply Show 15 previous comments Abhrajyoti00 commented Oct 8, 2022 reply Follow flag @princeit07 If a schedule is in Basic 2PL, then it is Conflict serializable and if it is conflict serializable then it is also view serializable. Now if a schedule is not serializable (means its even out of view serializable circle), it can never occur in a scheme using 2PL protocol.So, Answer: Option D 16 16 replyShare rhl commented May 30, 2023 reply Follow flag @princeit07 using basic Mathematical logic. $p\rightarrow q$ is equivalent to it contrapositive $\neg q \rightarrow \neg p$ If 2PL generates schedule $s$ then it is Conflict Serializable. and its contrapositive statement would be, If $s$ is not Conflict Serializable then it can’t be generated by 2PL. 1 1 replyShare Ashutosh mandal commented Sep 20, 2024 reply Follow flag If css is not stisfying thats why we use 2pl technique but here 2pl conditions are not hold because in shrinking phase lock acquir happens thats why not in 2pl . If 2pl does not hold then not css Option d 0 0 replyShare Please log in or register to add a comment.
27 27 votes As we can see the precedence graph is creating a cycle. $\implies$ It is not a conflict serializable schedule Also there is no blind write in the given schedule $\implies$ It is not view serializable (As it is not a conflict serializable schedule. ) $\implies$ It is not serilizable schedule. Also if a schedule is not serializable then it cannot be 2PL $\implies$ It is not 2PL schedule. $\therefore$ Option $D.$ is correct answer. Satbir answered Jul 21, 2019 Satbir comment Share Follow See all 2 Comments 2 2 Comments reply Joyoshish Saha commented Oct 4, 2019 reply Follow flag I just want to add that 2PL ensures serializability. So, if the schedule is not serializable, it cannot occur in a scheme using 2PL CC protocol. 4 4 replyShare neel19 commented Aug 2, 2021 reply Follow flag how does no blind write => non-VSS schedule? 0 0 replyShare Please log in or register to add a comment.
7 7 votes As shown: T1------>T2 and T2-------->T1 hence there is a cycle so it is not Conflict Serializable. For 2PL: as according to 2PL in the Growing phase we can acquire locks on data items only and in the Shrinking phase we can do unlocking only. Therefore if we do the same as above then in transaction T1 there will be the exclusive lock on data variable A (it can not be unlocked as there is remaining transaction T1) and at the same time if we look at T2, in the T2 transaction it is trying to get a lock on variable A which is not possible. That’s why it can not occur in the 2PL protocol. Hence answer is D Kaushal22 answered Oct 7, 2020 Kaushal22 comment Share Follow See 1 comment 1 1 comment reply santhu7 commented Dec 9, 2024 reply Follow flag Why should we check conflict serializability,why not view serializability 0 0 replyShare Please log in or register to add a comment.
2 2 votes BEST ANSWER akshay_123 answered Jul 5, 2025 akshay_123 comment Share Follow 0 reply Please log in or register to add a comment.
2 2 votes First and important thing to notice here serialiable means question asking for general serializibilty but due to NO computation between R/W so general Serializibility is equivalent to View Serializibility credit @Deepakpoonia sir @GOClasses swapnil walave answered Aug 19, 2025 • edited Jan 6 by swapnil walave swapnil walave comment Share Follow See all 2 Comments 2 2 Comments reply sreejit007 commented Jan 5 reply Follow flag I dont think thats true . There can be schedules which are serialisable but are not view serialisable .Correct me if I am wrong 0 0 replyShare swapnil walave commented Jan 6 reply Follow flag sorry i initially have mistake that i have to write NO but written IN by mistake while typing , and yes your doubt is correct there are schedules but i am talking about this particular schedule here we dont have computation in between so it collapses 0 0 replyShare Please log in or register to add a comment.
0 0 votes There is a cycle between T1 and T2. So, the schedule is not view-serializable.If the schedule is not serializable, then it is also not 2PL.Note : If a schedule is serializable, then it does not guarantee 2PL (same as Pumping Lemma analogy) P0535_Yedidyah_Sagar answered Jan 19 P0535_Yedidyah_Sagar comment Share Follow 0 reply Please log in or register to add a comment.