10 likes | 92 Views
t1. Lock-S(A). 100. t2. Read(A),UnLock-S(A). t3. Lock-X(A). t4. A=A-30. Lock-S(A). t5. Write(A). 70. Wait. t6. Rollback( 含 Unlock-X(A)). 100. Read(A) ,UnLock-S(A).
E N D
t1 Lock-S(A) 100 t2 Read(A),UnLock-S(A) t3 Lock-X(A) t4 A=A-30 Lock-S(A) t5 Write(A) 70 Wait t6 Rollback(含Unlock-X(A)) 100 Read(A) ,UnLock-S(A)