Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 208 Bytes
x = Thread.new { sleep 0.1; print "x"; print "y"; print "z" }
a = Thread.new { print "a"; print "b"; sleep 0.2; print "c" }
x.join # Let the threads finish before
a.join # main thread exits...
puts # newline
Jump to Line
Something went wrong with that request. Please try again.