All challenges
Code AnalysisHard 60s

Fencing missing on lease-based lock

A worker holds a lease, pauses (GC), and resumes. Why is this unsafe?
Starter code
lock = acquire("job:1", lease=10s)
do_work()          # pause 15s here, lease expired + another worker took over
write_result()     # no fencing token

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