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.