Something wrong with splats in my previous commit...backing out until I figure this...
[jruby.git] / samples / thread.rb
blobedf18bfea947bba9e313aaa67c62456135bb63de
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...
5 puts # newline