Make an in-memory booking system thread-safe
Filed under PhonePe
The question
Prevent check-then-act race conditions where multiple threads attempt to book the same available seat simultaneously by properly guarding the reservation operation.
No write-up yet. Related questions below have one.
Related PhonePe questions
Collected from public candidate posts and coding forums. Updated Nov 2026.