Skip to content

Instantly share code, notes, and snippets.

@mojombo
Created July 25, 2008 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mojombo/2548 to your computer and use it in GitHub Desktop.
Save mojombo/2548 to your computer and use it in GitHub Desktop.
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