Created
July 25, 2008 23:01
-
-
Save mojombo/2548 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
require 'logger' | |
log = Logger.new(STDOUT) | |
threads = [] | |
10.times do | |
threads << Thread.new do | |
loop do | |
log.info("foo") | |
end | |
end | |
end | |
threads.each { |t| t.join } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment