2010年6月9日

.NET 4.0中的Parallel.For 和 Parallel.ForEach的用法

摘要: 记录在此,以做备案。 public static void ForTest1() { int[] nums = Enumerable.Range(1, 10000000).ToArray(); long total = 0; Console.WriteLine(); // Use type parameter to make subtotal a long, not an int Parallel.For(0, nums.Length,... 阅读全文

posted @ 2010-06-09 11:00 老代哥哥 阅读(315) 评论(0) 推荐(0) 编辑

导航