It's a command line IO tool that we use that isn't ours so I changed the name. I just place it in c:\windows since its in the %PATH% and easier to access
Basically you have the standard output of any IO tool such as the options set, IO/s, errors, warnings, status, etc. If you have ever used iozone or dtstart in Linux, the output would be similar.
The way the script is right now, the tool doesn't matter since I'm still trying to get the worker threads going that will handle gathering the output from each instance of wintool.exe. Unless there's a better way of implementing it in perl, I'm stuck on why the thread won't start.
update:
I slowed the script down so I could see whats going on and where its hanging and apparently it hangs completely in the StartIO function when I try to read back the results from the socket. If I change the <$rfh> to this:
$rfh_select = new IO::Select( $rfh ) or die "Error setting up IO::S
+elect: $!\n";
while( !(@ready = $rfh_select->can_read( .1 )) ) {
#can_read hangs for .1 seconds so wait for it
# need to add some code to stop the loop if we wait to long
}
sysread( $rfh, $results, 9999999 );
It will run more or less like it should. Still a few bugs to work out but at least the thread isn't hanging when I ask it to start.
So the million dollar question that I'm asking is what would a <$handle> in thread A stop a threads->new() from starting thread C & D from thread B? |