Do the same multi task in the same time
<p>I have a problem in Asp.net C#</p>

<p>I have the code below :
    List objectList = new List();</p>

<pre><code>foreach(var item in listItem)
{
  object obj = getData (item);
  objectList.add(obj);
}
Console.Write("Finish all");
</code></pre>

<p>Each time `getData (item);' fires it takes about 1s;</p>

<p>I want all items in <code>listItem</code> to run at the same time and then execute after <code>foreach</code> finishes the <code>Console.write("Finish all")</code></p>

<p>How can I do that?</p>

<p>Any idea will be appreciated!</p>
