File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes wait()/notify() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "wait()/notify()" Watch "wait()/notify()" New topic


meena latha
Ranch Hand

Joined: Jan 24, 2005
Posts: 219
i am not yet clear with using wait() and notify().
Can anybody explain me where should i use the notify() in the below code to invoke the waiting thread.

Thanks in advance.
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

This is best explained here.
Consider Paul's rocket mass heater.
subject: wait()/notify()
jQuery in Action, 3rd edition