Concurrency in Database
An Interactive "Lost Update" Simulator
Central Bank Database Balance
£1000
Process A
Salary
Amount to Add/Subtract:
Worker A Local RAM
£---
Step 1. Read DB Balance
Step 3. Add (or subtract) the salary credit
Step 5. Overwrite DB
Process B
ATM
Amount to Add/Subtract:
Worker B Local RAM
£---
Step2. Read DB Balance
Step 4. Add the ATM credit
Simulator online. Set custom amounts and follow the steps.
Reset Lab