title: How to run subroutine in parallel?
body: <pre><code>for(i=0; i&lt;5; i++)
  {
    method1();
  }
  
  sub method1()
      {
             // here do something
      }
  </code></pre>
  
  <p>Here I called method1 subroutine in for loop. Here, I want this method1 subroutine to be called (in parallel) without waiting for the result of previous call. How to do that ? Is there any other method other than thread ?</p>