Prepare YAML support for extraction
[jruby.git] / samples / thread.rb
blobda744a7bf5169f879bac1d1ec4c415d9f07cf14e
1 x = Thread.new { sleep 0.1; print "x"; print "y"; print "z" }
2 a = Thread.new { print "a"; print "b"; sleep 0.2; print "c" }
3 x.join # Let the threads finish before
4 a.join # main thread exits...