java.util.concurrent prior wait and notify