Instead of rebuilding condition variables by hand with wait()/notifyAll(), java.util.concurrent gives tested coordination tools for one-shot gates, reusable rendezvous barriers, permit rate limiters, producer-consumer pipelines and read-mostly lists.
More lessons in Complete Core Java