






















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!























Concurrency control and recovery Resolving deadlocks Logical logging
Example: T j T i
wj (A) ri(A) Commit Ti
Abort Tj
2
Cascading rollback (Bad!)
T i reads from T j in S (denoted T j ⇒S T i ) if
Schedule S is recoverable if whenever Ti reads from another transaction Tj, Ti does not commit until after Tj commits.
With 2PL, hold write locks until transaction commits (strict 2PL)
T j T i
Wj (A)
Cj uj (A) ri(A)
10
Where are serializable schedules?
13
Avoids cascading rollback
RC
ACR
ST (^) SERIAL
SERIALIZABLE
Deadlock Detection
17
Timeout