| December 12, 2008 00:17:21 |
#1 |
| maneesh.ce.2007 |
Member Since: November 2008 Total Comments: 10 |
RE: Inter Thread Communication |
There are three ways in which Threads communicate with each other :
wait: It tells the calling thread to give up the monitor until some other thread enters the same monitor an calls Notify or Notifyall...
notify: It wakes up the first thread that called Wait() on the same object...
NotifyAll: It allows all the threads that called Wait() on the same object.The thread having the highest priority will run first... |
| |