Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Conflicting operations, conflict serialisability, precedence graph, view serialisability, serial schedule » ?

Aussi appelé : serial schedule · conflicting operations · conflict serialisability · precedence graph · view serialisability

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

A schedule is serial when the operations of each transaction are consecutive. Two operations are conflicting operations when they belong to different transactions, touch the same item and at least one of them is a write. Two schedules of the same operations are conflict-equivalent when every pair of conflicting operations comes in the same order in both. A schedule has conflict serialisability when it is conflict-equivalent to a serial schedule. Its precedence graph has one node per transaction and an edge Ti→TjT_i \to T_j whenever an operation of TiT_i conflicts with a later operation of TjT_j. View serialisability is the weaker property of being view-equivalent to a serial schedule: every read reads the value written by the same write in both, and every item’s last write is the same.

The precedence graph of the schedule R_1(A)\,W_2(A)\,R_2(B)\,W_3(B)\,R_3(C)\,W_1(C). Each edge is labelled with the conflict that creates it. The cycle means that no serial order has the same conflicts: T_1 would have to come before T_2, T_2 before T_3 and T_3 before T_1.
The precedence graph of the schedule R1(A) W2(A) R2(B) W3(B) R3(C) W1(C)R_1(A)\,W_2(A)\,R_2(B)\,W_3(B)\,R_3(C)\,W_1(C). Each edge is labelled with the conflict that creates it. The cycle means that no serial order has the same conflicts: T1T_1 would have to come before T2T_2, T2T_2 before T3T_3 and T3T_3 before T1T_1.
Lire dans le chapitre →