






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







[y] c 22
-^ H is equivalent to executing T
followed by T 2 1
-^ Note, H is^ not^ equivalent to T
followed by T 1 2
-^ Also, note that T
started before T 1 2 and finished before T, yet the effect is that T^2
ran first. 2 T: Start;^1 A = Read(x);A = A + 1;Write(x, A);Commit;
T: Start;^2 B = Read(x);B = B + 1;Write(y, B);Commit;
-^ Some more serializable executions:r[x]^ r[y] w[y]^122
w[x]^ ≡^ TT≡^ TT^11 2
1 r[y]^ r[y] w[y]^ w^1221
[x]^ ≡^ TT≡^ TT^1 2 2 r[x]^ r[y] w[y]^ w^1221
[y]^ ≡^ TT≡^ TT^2 1 1
-^ Serializability says the execution is equivalent to^ some^ serial order, not necessarily to
all^ serial ordersDocsity.com
-^ When a transaction commits, its results willsurvive failures (e.g. of the application, OS,DB system … even of the disk). •^ Makes it possible for a transaction to be a legalcontract. •^ Implementation is usually via a log^ –^ DB system writes all transaction updates to its log^ –^ to commit, it adds a record “commit(T
)” to the logi
-^ when the commit record is on disk, the transaction iscommitted. –^ system waits for disk ack before acking to user
all participant RMs, the coordinator tells all participantRMs to commit.
OtherTransactionManagers
transaction identifier
TPC)^ sets standards
-^ http://www.tpc.org. • TPC A & B (‘89-’95), now TPC C &W