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
Prepare YAML support for extraction
[jruby.git]
/
samples
/
thread.rb
blob
da744a7bf5169f879bac1d1ec4c415d9f07cf14e
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...