4 vm1 = JRuby::VM.spawn(['-e' "load 'samples/mvm_subvm.rb'"])
5 vm2 = JRuby::VM.spawn(['-e' "load 'samples/mvm_subvm.rb'"])
7 # connect them to parent
11 # connect them together
18 # let them run for a while, reading their progress
20 Thread.new { while run; puts JRuby::VM.get_message; end }