logo       

about wait and notify: msg#00145

java.vm.kaffe.general

Subject: about wait and notify

Hi to everyone,
I've got a doubt about the behaviour of wait/notify methods at the JVM level.
This doubt came in my mind after I noticed a misbehaving program which was
using such methods. By the way here's the problem: running a program which
executes a notify() call on a monitor, I noticed two different behavior
between kaffe and sun JVM. While the former (1.0.5) executes rightly, that
means suspend the notifier thread and resume waiting threads just after the
notify call, the latter didn't: it continued the execution of the notifier
thread untill re-schedulation.
Now I'd like to know if this is true (i.e., the two JVMs act differently on
thread synchronization) and is a design aspect. If so can anybody tell me why
there's this difference?

Thanks,
Luca

--
Luca Ferrari,
fluca1978@xxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise