Skip to content
Preptima
hardConceptMidSeniorStaff

What does it mean for a concurrent schedule to be serialisable, and how does two-phase locking guarantee it?

5 min readUpdated 2026-08-15

Answer

Short answer

A schedule is serialisable when its effect matches running the same transactions one after another in some order, which is the criterion isolation is defined against. Two-phase locking achieves it by forbidding a transaction from acquiring any lock after releasing one, and the price is deadlock.

Was this answer helpful?

Likely follow-ups

  • Why does strict two-phase locking hold exclusive locks until commit rather than releasing them earlier?
  • Show me a schedule that is serialisable but that two-phase locking would refuse to produce.
  • How does snapshot isolation avoid read locks, and what anomaly does it still permit?
  • Why do most databases detect deadlocks rather than prevent them?

Related questions

Further reading

Related Topics