摘要: 刚看CLR VIA C# 关于Parallel.ForEach讲解,依葫芦画瓢自己写了一个实例,功能实现了 ,但是不明白如何实现,看源码 看的一头雾水,求高人分析,能帮忙写个简单的内部实现过程废话不多说 直接上代码//通过for实现运算 private static long GetTotalCount(String[] strs) { long totalCount = 0; for (int i = 0; i (strs, () => 0, (str, loopState, index, length) => 6 { 7 ... 阅读全文
posted @ 2013-06-23 16:08 sjR10 阅读(2046) 评论(7) 推荐(0) 编辑