What is the most fast way to run 2 for loop ?
<p>I have simple code </p>

<pre><code>for( int i = 0 ; i &lt; arr.GetLength(0) ; i++)
{
    for( int j = 0 ; j &lt; arr.GetLength(1) ; j++)
    {
         arr[i, j ] = 0;
    }
}
</code></pre>

<p>I need to make this code to be very fast - so i want to use the <code>Tasks.Parallel.For</code></p>

<p>What will be the most fast and effecint way to use the <code>Parallel.For</code> ? </p>

<p>It can be like this </p>

<pre><code>Parallel.for( int i = 0 ; i &lt; arr.GetLength(0) ; i++)
{
    Parallel.for( int j = 0 ; j &lt; arr.GetLength(1) ; j++)
    {
         arr[i, j ] = 0;
    }
}
</code></pre>

<p>or just use one <code>Parallel.for</code> ? </p>
