thepointman.dev_

Courses / Java Concurrency

Synchronization Primitives

intermediate8 lessons

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

  1. 01

    The Monitor Model — What synchronized Actually Means

    soon
  2. 02

    synchronized Method vs synchronized Block — The Difference

    soon
  3. 03

    Static synchronized — Locking on the Class Object

    soon
  4. 04

    Intrinsic Lock Inflation — Biased, Thin and Fat Locks

    soon
  5. 05

    volatile — Visibility Guarantee and the No-Atomicity Trap

    soon
  6. 06

    Object.wait() and Object.notify() — The Low-Level Coordination Primitive

    soon
  7. 07

    The Spurious Wakeup — Why You Always Use while, Not if

    soon
  8. 08

    Deadlock via synchronized — Conditions and the Lock-Ordering Fix

    soon