← Questions

Find and fix the races in a bank account class

0
SpaceXAICodingLast asked Sep 2026

You are shown a small bank account class used from several threads, with a deposit method that loses updates. Find every concurrency bug, fix it, and explain why your fix is correct and what it costs.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding