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

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


Nevermind, I figured it out.

  - a

Adam Megacz <gcj@lists.megacz.com> writes:
> 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
> 

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



More information about the Java mailing list