Considering the fact that wait () can only be called in a synchronized context, which subsequently frees the monitor until notify / nofityAll is called on the same object by another thread,
Suppose Thread A blocks wait (), with the result that Thread B gets a lock. Now, if we interrupt Thread A, will control be immediately transferred to Thread A? in this case, since the catch try block that handles InterrupException is in a synchronized context, and since only one thread can hold the monitor at a time, what will happen to Thread B? should it go into a locked state until Thread A completes execution?
Thanks at Advance
source
share