I think this topic may not be accurate enough, but I really don’t know how to describe it very briefly ...
I want to do the following: I have a process that does some analysis (in Java) and tries to give a return value, but the whole analysis has a time limit, for example 10 seconds
If the analysis gives a result within 10 s, return the result; otherwise, once before reaching 10 s, stop the process and return a dummy value
I am new to this area, any suggestions would be welcome.
source
share