title: Creating multiple identical threads in Ruby
body: <p>What I woul dlike to do is to create multiple threads calling the same method with slightly different arguments each time, like this:  </p>
  
  <pre><code>x = 1
  argument = 3
  while x &lt;= 10 do #10 is the number of desired threads
      Thread.new{
          puts do.stuff(argument)
      }.join
      x += 1
      arguments += 1
  end
  </code></pre>
  
  <p>My problem is that this code causes the main thread to stop until the declared thread is finished. Is there any way I can create these threads so that they will run concurrently?<br>
  Thanks.</p>