2,865 views

2 Answers

2 votes
2 votes
1.2PL ensures serial schedule, and every serial schedule is conflict serializable.

2. Timestamp ensures conflict serializable schedule and every conflict serializable schedule is view serializable.

Both options are true.
edited by
2 votes
2 votes

1.  2PL is always conflict serializable 

This is True because the basic motive of 2 phase locking is to ensure serializability because binary locks or shared and exclusive locks in transaction does not guarantee serializability of schedules on its own.

  • 2 phase locking always results in conflict serializable schedule.
  • But every conflict serializable schedule does not ensure it can satisfy 2 phase locking

2. Timestamp protocol is conflict and view serializable

  • Every schedule satisying Timestamp protocol is conflict serializable and hence view serializable

Related questions

3 votes
3 votes
1 answer
2
shivangi5 asked Dec 6, 2017
1,243 views
Consider the following schedule:S:R2(A) W1(B) W1(C) R3(B) R2(B) R1(A) C1 R2(C) C2 W3(A)C3Please explain how it is allowed in 2 PL
1 votes
1 votes
1 answer
3
Kushagra Gusain asked Sep 7, 2017
1,008 views
Why is cascading rollback possible in 2 phase locking protocol, we know it guarantee serializability and serializable schedule are strict, which implies it is cascadeless...
1 votes
1 votes
1 answer
4
palashbehra5 asked Jan 17, 2022
1,048 views
Given Problem : S1 can be shown allowed under 2PL.However, the solution that they have provided for S2 : Seems wrong, as So, is S2 allowed under 2PL, or the answer give...