Parallel并行循环
摘要:
Parallel.For(0, 100, new ParallelOptions() { MaxDegreeOfParallelism = 100 },(i, pls) => { if (i > 30) { pls.Break();//相当于continue return; } }); Parallel.For(0, 100,new ParallelOptio... 阅读全文
posted @ 2017-03-20 07:28 万里驰骋 阅读(257) 评论(0) 推荐(0)
浙公网安备 33010602011771号