Jason,
No there will be no issues when the process is killed, that is why it runs in a separate process, so I can kill everything that goes along with it.
I stress to you again, there is no need to time your function to see when 5 seconds is up. You should implement iterative deepening such that it starts at search depth 1, and continues on to search depth infinity, banking on the fact that it will be shut down after some interval of time. Throughout this whole process it should be outputting moveds. For all you know I could change the time limit to 7 seconds, and then you would be really upset, because you stop all of your move threads after 5 seconds...
Mike |