Locks, Invariants & Deadlocks

Can you spot the hang? Practice 3 scenarios in this Java concurrency topic.

Drills in this section

  • Classic Java Monitor Deadlock: Classic Java Monitor Deadlock: practice a Java concurrency bug with symptoms like Requests hang, CPU not maxed, Threads blocked. Inspect runnable code,...
  • ReentrantLock Without unlock() in finally: ReentrantLock Without unlock() in finally: practice a Java concurrency bug with symptoms like Threads block forever, Service appears stuck, Process alive...
  • ReadWriteLock Upgrade Trap: ReadWriteLock Upgrade Trap: practice a Java concurrency bug with symptoms like Request hangs, Thread waits unexpectedly, Confusing lock behavior. Inspect...