All challenges
Code AnalysisHard 60s

Read-modify-write lost update

Two concurrent workers run this. What bug is present?
Starter code
-- worker A and B both execute:
UPDATE accounts SET balance = balance + 10 WHERE id = 1;

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle