You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reach the best possible performance, this script uses a [RunspacePool](https://msdn.microsoft.com/en-US/library/system.management.automation.runspaces.runspacepool(v=vs.85).aspx). As you can see in the following screenshot, the individual tasks are distributed across all cpu cores:
# If no jobs finished yet, wait 500 ms and try again
330
-
if($Jobs_ToProcess-eq$null)
332
+
if($null-eq$Jobs_ToProcess)
331
333
{
332
334
Write-Verbose-Message "No jobs completed, wait 500ms..."
333
335
@@ -348,7 +350,7 @@ Process{
348
350
349
351
Write-Progress-Activity "Waiting for jobs to complete... ($($Threads-$($RunspacePool.GetAvailableRunspaces())) of $Threads threads running)"-Id 1-PercentComplete $Progress_Percent-Status "$Jobs_Remaining remaining..."
0 commit comments