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