Last active
August 3, 2023 20:35
-
-
Save techthoughts2/d0db235e6cd96bded9533c69c83da687 to your computer and use it in GitHub Desktop.
This file contains hidden or 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-CimInstance 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 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment