Comment Comment by graetzer Its usually a good idea to hold the lock because the other thread(s) might not have called wait() yet.As a rule of thumb: its usually a bug to not hold the lock before notify(), unless you synchronize it with another condition parent graetzer 6 years ago
As a rule of thumb: its usually a bug to not hold the lock before notify(), unless you synchronize it with another condition