码迷,mamicode.com
首页 > Web开发 > 详细

Parallel for loops in .NET C# z

时间:2014-05-22 15:59:26      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:style   blog   class   c   code   java   

  • The start index: this is inclusive, i.e. this will be the first index value in the loop
  • The end index: this is exclusive, so it won’t be processed in the loop
  • An Action of int which represents the method that should be executed in each loop, where int is the actual index value
bubuko.com,布布扣
Parallel.For(0, 10, index =>
{
    Console.WriteLine("Task Id {0} processing index: {1}",
        Task.CurrentId, index);
});
bubuko.com,布布扣

 

Parallel for loops in .NET C# z,布布扣,bubuko.com

Parallel for loops in .NET C# z

标签:style   blog   class   c   code   java   

原文地址:http://www.cnblogs.com/zeroone/p/3744051.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!