in reply to Re^3: Testing whether a process has finishedin thread Testing whether a process has finished