actually i have posted a
question about 7 hours ago but till now i have not get any solution.so i worked myself on this.
i found it in a sense(I don't know whether author is intending to mention the same or
not,thats why i am posting here in order to let me know whether am i correct or not ? )
the problem with the code seems like this-suppose the time at which executor thread interrupt the
taskthread may be at that time run method of "r" has not completed causing invalid termination of
taskthread (before successful execution) consequently giving the inconsistent results or another sitution is
when the taskthread is not responsive to interruption causing taskthread to run for a long time
resulting in breaking the policy of timedRun.
correct me if i am wrong.
reply will be appreciated.
thanks.
regards
praveen