, , :
notify wait ing. , notify, synchronized. notify , - synchronized wait, wait - notify .
, , notify, . synchronized wait. reset , notify .
,
- ,
notify invocations notify
That's why I like the right processing cycle.
synchronized(obj) {
while(somecond)
obj.wait();
}
From the point of view of applications, there is no difference between legacy pending notifyand false awakenings generated by the JVM / OS without associated calls notify. This is why there is no attempt to prevent false awakenings of the JVM. Efforts will be wasted, as the logic will not change.
source
share