n = 1while n <= 3 # Get a private copy of the current value of n in x Thread.new(n) {|x| puts x } n += 1end