Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Two-phase locking, strict two-phase locking, cascading abort, recoverable schedule » ?

Aussi appelé : two-phase locking · strict two-phase locking · cascading abort · recoverable schedule

Definition 23.3 University Computer Science — Year 3 · Chapitre 23 — Concurrency Control and Recovery

A transaction follows two-phase locking when it acquires all its locks before it releases any: a growing phase, then a shrinking phase. The moment of its last acquisition is its lock point. Under strict two-phase locking it also keeps its exclusive locks until it commits or aborts; the scheduler of this chapter keeps all its locks until then. A cascading abort is the abort of a transaction forced because it read a value written by a transaction that then aborted. A schedule is a recoverable schedule when each transaction commits only after every transaction whose writes it read has committed.

Locks held by one transaction over time. Under two-phase locking the count only grows until the lock point, then only falls. Strict two-phase locking keeps every lock until the commit and drops them all at once, so no other transaction ever reads a value that might still be rolled back.
Locks held by one transaction over time. Under two-phase locking the count only grows until the lock point, then only falls. Strict two-phase locking keeps every lock until the commit and drops them all at once, so no other transaction ever reads a value that might still be rolled back.
Lire dans le chapitre →