Lab
Serializability lab
Type a schedule: the conflicts, the precedence graph, whether it is conflict serializable and an equivalent serial order.
The schedule
Operations in the order they happen: R or W, the transaction number, the item
Try
Operations by transaction
6 operations, 2 transactions
| T1 | R1(A) | W1(A) | · | · | R1(B) | W1(B) |
|---|---|---|---|---|---|---|
| T2 | · | · | R2(A) | W2(A) | · | · |
Conflict serializability
No cycle in the precedence graph
Serializable, equivalent to T1 then T2
Conflicts (the earlier operation points to the later)
- T1 → T2 on A
Two operations conflict when they belong to different transactions, use the same item, and at least one is a write. If the graph has no cycle, the transactions can be put in an order that gives the same result; a cycle means no order can.