In the JavaDoc of Object class, in the method wait(long timeout) it is described like below
"If the current thread is interrupted by any thread before or while it is waiting, then an InterruptedException is thrown"
what is meant by "before" in the above statement? before executing obj.wait() means before executing any instruction defined above it?
synchronized (obj) {
while (<condition does not hold>)
obj.wait(timeout);
... // Perform action appropriate to condition
}