[java] Java: notify() vs. notifyAll() all over again