I have a
thread application which waits for a signal from a third party application and based on the notification from it, my thread will come out of wait and continue it's processing. I am running into a situation where, the thrid party application is not sending the notification to my thread, because of which my threads keeps on waiting and hangs.
I want to know, is there any way to kill my thread which waits for the notification after a certain time?
can a thread come out of wait() without notify()/notifyall() being called???