Created
September 27, 2018 17:25
-
-
Save garyharan/273a5c14d4ed9ff69445c1f06cf9ec89 to your computer and use it in GitHub Desktop.
Reaching maximum threads in ruby
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
loop { Thread.new { sleep } rescue puts "Borked at #{Thread.list.count} threads." } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment