Coordination, Waiting & Cancellation

Can you spot the broken wait? Practice 4 scenarios in this Java concurrency topic.

Drills in this section

  • wait() / notify() Without a Condition Loop: wait() / notify() Without a Condition Loop: practice a Java concurrency bug with symptoms like Consumer wakes too early, Strange intermittent behavior,...
  • Swallowed Interrupt During Shutdown: Swallowed Interrupt During Shutdown: practice a Java concurrency bug with symptoms like Shutdown hangs, Worker ignores cancellation, Process still alive....
  • CountDownLatch Never Reaches Zero: CountDownLatch Never Reaches Zero: practice a Java concurrency bug with symptoms like Main thread hangs, Await never returns, Partial work finished....
  • Semaphore Permit Leak: Semaphore Permit Leak: practice a Java concurrency bug with symptoms like Throughput drops to zero, Work stops entering, App appears stuck under load....