JRuby: Difference between revisions

30 bytes removed ,  3 years ago
m
no edit summary
m (Add a link.)
mNo edit summary
 
Line 3:
# => "jruby"</lang>{{infobox end}}
 
JRuby is an implementation of Ruby that runs inside the [[runs on vm::Java Virtual Machine]] and can call Java libraries from Ruby code. JRuby 19.62.x implementsapproximates bothto Ruby 12.85.7 and Ruby 1.9.2 in one installx.
 
JRuby has preemptive concurrency like Java; each Ruby Thread is a Java Thread. JRuby can run multiple threads in parallel on multiple CPUs, if the JVM can do so. [[MRI]] has a Global VM Lock and can run these threads on only one CPU. In contrast, JRuby can never fork processes; MRI can fork with some platforms.
Anonymous user