<div><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Thankyou both Don Stewart and Simon Marlow for your responses.</blockquote><div><br><br>By adding yield and threadDelay in certain spots I have at least prevented<br>some of the threads from being starved of CPU time.<br>
<br>The only issue now is that terminateProcess doesn't always terminate <br>netstat.exe in the cmd.exe so I don't get an exit condition.<br></div><br></div><br>