Really notifyAll only introduces some thread context
switching overhead when there are many threads waiting, but
it generally provides more robust code. See the examples in
Doug Lea's book.

> But....
> // This release() must be inside the synchronization block on the 
> classloader
> // to avoid that a notifyAll() will arrive before the wait() below, see 
> unsynchronize()
> 
> What problem does the notifyAll before the wait cause? Spinning?
> 
> Regards,
> Adrian
> 



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to