✅ Check yourself · Race conditions
Did it stick?
Reading is the easy part — retrieving is what makes it yours. Answer each one; you'll see WHY on every pick, right or wrong.
1Apply it · 1 of 3
A counter starts at 5. Thread A and Thread B both want to add 1, and they overlap: A reads 5, then B reads 5 (before A writes), A writes 6, B writes 6. What's the final value, and what's wrong?