Ads Sponsored By Google :)

Friday, 18 January 2013

inter thread communication in java multithreading explain example ppt


inter thread communication inter thread communication in java java inter thread communication inter thread communication java inter thread communication in java example inter thread communication in java multi threading inter thread communication in java explain example inter thread communication in java ppt

  Inter Thread Communication:

                  Inter Thread Communication is one of the distinct facility in multi threading  
   application development of java. Inter thread communication concept is one of the  
   specialized form of inter process communication of operating system. In real world Inter 
   Thread communication based applications of java very fastest applications compared to 
   all the applications in java.


Definition Of Inter Thread Communication:

       The mechanism of exchanging the data / information between the multiple threads is known as Inter Thread Communication.
                                                                       Or
      If first thread gives output as input to second thread and second thread output of second  
 thread is given as input to third thread etc…. then the consistent communication between 
 first, second, third threads is known as Inter Thread Communication.

   The real world implementation of inter thread communication concept is in the following 
   areas.
         
            a)      Development of real world server software’s.
            b)      Development of universal protocol’s like Http,ftp etc…

            In order to develop Inter Thread Communication applications we use the predefined methods of java.lang.Object and these methods are known as Inter Thread Communication  Methods.

Methods In java.lang.Object
       
              1)      Public void Wait(long millisecond) throws InterruptedException
              2)      Public void wait() throws interruptedException
              3)      Pubic void notify()
              4)      Public void notifyAll()


No comments:

Post a Comment

LinkWithin