Parallel for loops in .NET C# z
760 ワード
Parallel.For(0, 10, index =>
{
Console.WriteLine("Task Id {0} processing index: {1}",
Task.CurrentId, index);
});
Parallel.For(0, 10, index =>
{
Console.WriteLine("Task Id {0} processing index: {1}",
Task.CurrentId, index);
});