
4 Threads used for searching a strings in 4 different servers. If any of the thread is found that string, then the other threads should be notified to stop searching.
wait/notify/notifyall mechanism cant be used here.
Then how the threads can communicate with themselves?
Kindly let me know the way to do this.
Thanks in advance.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.