Concurrency bugs: race conditions, deadlocks, lost updates
1 post. All topics
Bugs that only happen when many things run at the same time.
You will learn
- Race conditions
- Deadlocks
- Lost updates
- Why thread pools fill up and hide overload
Good for: anyone whose code handles many requests at once.
Posts on Concurrency
-
11 min read
Race condition in Java: check-then-act explained
Why code that looks correct loses updates or creates duplicates under load, how to reproduce a race condition, and how to fix it on one server and across many.