The monitor model from first principles, synchronized method vs block vs static, intrinsic lock inflation (biased → thin → fat), volatile's visibility guarantee and the atomicity trap, Object.wait()/notify()/notifyAll() semantics, spurious wakeups, and deadlock via synchronized with lock-ordering as the fix.
// Lessons
- 01soon
The Monitor Model — What synchronized Actually Means
- 02soon
synchronized Method vs synchronized Block — The Difference
- 03soon
Static synchronized — Locking on the Class Object
- 04soon
Intrinsic Lock Inflation — Biased, Thin and Fat Locks
- 05soon
volatile — Visibility Guarantee and the No-Atomicity Trap
- 06soon
Object.wait() and Object.notify() — The Low-Level Coordination Primitive
- 07soon
The Spurious Wakeup — Why You Always Use while, Not if
- 08soon
Deadlock via synchronized — Conditions and the Lock-Ordering Fix