Created
November 24, 2008 04:41
-
-
Save mag/28378 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
pedroia:jrubytest mag$ jruby calculate_year.rb | |
JRuby limited openssl loaded. gem install jruby-openssl for full support. | |
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL | |
STARTING 1 | |
STARTING 2 | |
after Foo, thread 1 | |
/Users/mag/dev/jruby-1.1.5/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:428:in `load_missing_constant': Expected /Users/mag/dev/jrubytest/app/models/foo.rb to define Foo (LoadError) | |
from /Users/mag/dev/jruby-1.1.5/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in `const_missing_with_dependencies' | |
from /Users/mag/dev/jruby-1.1.5/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:89:in `const_missing' | |
from calculate_year.rb:11 | |
from :1:in `initialize' |
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 'config/environment' | |
t1 = Thread.new() do | |
puts "STARTING 1" | |
Foo | |
puts "after Foo, thread 1" | |
sleep 10 | |
end | |
t2 = Thread.new() do | |
puts "STARTING 2" | |
Foo | |
puts "after Foo, thread 2" | |
end | |
t1.join | |
t2.join |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment