Find and fix the races in a bank account class
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.
No answer yet. Write the first one; the best answer gets endorsed.
