GATE CS 2021, set 1 · Question 42 · Databases · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Let rᵢ(z) and wᵢ(z) denote read and write operations respectively on a data item z by a transaction Tᵢ. Consider the following two schedules.
S₁: r₁(x) r₁(y) r₂(x) r₂(y) w₂(y) w₁(x)S₂: r₁(x) r₂(x) r₂(y) w₂(y) r₁(y) w₁(x)
Which one of the following options is correct?

  1. (A) S₁ is conflict serializable, and S₂ is not conflict serializable.
  2. (B) S₁ is not conflict serializable, and S₂ is conflict serializable.
  3. (C) Both S₁ and S₂ are conflict serializable.
  4. (D) Neither S₁ nor S₂ is conflict serializable.
Answer

Answer (B)

Answer from the official GATE CS 2021 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes