This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
why does notify() have to be called from within a synchronized block?
- From: Adam Megacz <gcj at lists dot megacz dot com>
- To: java at gcc dot gnu dot org
- Date: 15 Oct 2002 15:54:42 -0700
- Subject: why does notify() have to be called from within a synchronized block?
- Organization: Myself
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