This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
I have a question regarding notifyall(),wait() and notify().
What if i notify a thread which is not waiting on an objects lock,i.e what if the code with notify() runs before the code with wait()?