repo.or.cz
/
jruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix for JRUBY-2882. Handle error messages related to constructors better
[jruby.git]
/
samples
/
thread.rb
blob
edf18bfea947bba9e313aaa67c62456135bb63de
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