Hi,
I've a problem and am unable to solve it. I have a tool got from a .jar running on a
thread. I am creating this thread in another method. I want to stop the execution of this thread after 'x' seconds.
Now here's my problem. I tried to do this using join(), and also by using wait and notify. This works well when the thread is put to sleep and while the thread is asleep, it gets interrupted. But when the actual tool is running and active, the thread is not getting interrupted and the tool goes all the way and completes executing.
Can anyone suggest what I've done wrong and what I can do to solve this problem?
Hope for a reply soon.................