Thread communication
by , 01-08-2012 at 12:18 PM (949 Views)
Following methods are used to perform communication between threads.
Wait()
Notify()
notifyAll()
In the following code, count is a shared variable between different threads. Its a consumer producer process in which consumer waits in consume() method and waits for producer to perform its action.
Thread communication










Email Blog Entry
sorry for all the questions
thanks...
06-14-2013, 02:22 PM in gbonecapone