WHAT METHODS JAVA PROVIDING FOR THREAD COMMUNICATIONS ?

Amit Singh

Total Post:562

Points:2810
Posted by  Amit Singh
Java 
 1056  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:562

    Points:2810
    What methods java providing for Thread communications ?

    Java provides three methods that threads can use to communicate with each other: wait, notify, and notifyAll. These methods are defined for all Objects (not just Threads). The idea is that a method called by a thread may need to wait for some condition to be satisfied by another thread; in that case, it can call the wait method, which causes its thread to wait until another thread calls notify or notifyAll.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!