why does notify() have to be called from within a synchronized block?

Adam Megacz gcj@lists.megacz.com
Tue Oct 15 15:53:00 GMT 2002

I understand why wait() requires this, but what's wrong with calling
notify() when you're not holding the monitor?

  - a

"Through your rags I see your vanity"  -- Socrates

More information about the Java mailing list