Last active
December 9, 2020 19:46
-
-
Save blackode/64d855fc910193b31fe44d466d9ea57b to your computer and use it in GitHub Desktop.
Maximum Processes Limit
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
for _ <- 0..1_000_000 do | |
p_count = Process.list() |> Enum.count() | |
IO.puts "Creating Process: #{p_count}" | |
spawn(Process, :sleep, [:infinity]) | |
rescue | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment