I\'m just looking in to the new .NET 4.0 features. With that, I\'m attempting a simple calculation using Parallel.For and a normal for(x;x;x) loop.
Parallel.For
for(x;x;x)
if there are two parameters in this code. For example
long sum1 = 0; long sum2 = 0; Parallel.For(1, 10000, y => { sum1 += y; sum2=sum1*y; } );
what will we do ? i am guessing that have to use array !