"Shashank Date" <sdate / kc.rr.com> wrote in message > > What do you mean by "Does not work"? Can you be more specific? > > The second thread does not start till the first thread is done, effectively > defeating the purpose of multi-threading. > Got this working now. All I had to do was replace back-quoted commands with a system call ! So doing: `ping -n 10 localhost` was blocking the thread until done, while as system("ping -n 10 localhost") was not. Makes me believe that there is something different between the two methods. Not surprising because back-quoting allows you to capture the output in a string variable but system does not. -- shanko