in reply to Re^3: How to make a thread to wait till a command on shell get completed.
in thread How to make a thread to wait till a command on shell get completed.

Thanks for pointing for the error. I fixed the issue by putting below fix

if ( $totalKeys < $numThreads ) { $numThreads = $totalKeys; }

Now this code is running as expected.

  • Comment on Re^4: How to make a thread to wait till a command on shell get completed.
  • Download Code