Created
November 1, 2021 15:52
-
-
Save BytesCrafter/d27eb4ec7a50f621596adf53029194eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$NumberOfLogicalProcessors = Get-WmiObject win32_processor | Select-Object -ExpandProperty NumberOfLogicalProcessors | |
ForEach ($core in 1..$NumberOfLogicalProcessors){ | |
start-job -ScriptBlock{ | |
$result = 1; | |
foreach ($loopnumber in 1..2147483647){ | |
$result=1; | |
foreach ($loopnumber1 in 1..2147483647){ | |
$result=1; | |
foreach($number in 1..2147483647){ | |
$result = $result * $number | |
} | |
} | |
$result | |
} | |
} | |
} | |
Read-Host "Press any key to exit..." | |
Stop-Job * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment