This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Mostafa posted: My Question is wait() in line 9 will wait forever if code from 19 to 24 worked all at first.Is that true?
Marc quoted: Yes.Although it's extremely unliked.............. I run the program excelent answer " the b.sleep(100)" I got it,my question is: Marc quoted: "the wait method would time out and the thread could run again without notification" Since Thread B is not the lock's owner,how come be notified? Please I need to clarify this point Thanks