Lesson - 7 : Threads - Interthread Communication In Java Programming

Опубликовано: 28 Сентябрь 2024
на канале: Sada Learning Hub
189
4

Inter Thread communication (wait(),notify(), notifyAll()):
1. Two Threads can communicate with each other by using wait(), notify() and notifyAll() methods.
2. The Thread which is excepting updation it has to call wait() method and the Thread which is performing updation it has to call notify() method. After getting notification the waiting Thread will get those updations.