StreakPeaked· Practice

ExamsGATETechnical

Consider the following two statements about database transaction schedules: I. Strict two-phase locking protocol generates conflict serializable schedules that are also recoverable. II. Timestamp-ordering concurrency control protocol with Thomas' Write Rule can generate view serializable schedules that are not conflict serializable. Which of the above statements is/are TRUE?

  1. I only
  2. II only
  3. Both I and II
  4. Neither I nor II

Correct answer: Both I and II

Solution

Both statements are true because the strict two-phase locking protocol ensures that transactions are executed in a way that maintains conflict serializability and recoverability. Additionally, the timestamp-ordering concurrency control with Thomas' Write Rule allows for the generation of view serializable schedules that may not adhere to conflict serializability due to its handling of write operations.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →