并行计算

List<string> tList = new List<string>();

tList.add("a");

tList.add("b");

tList.add("c");

tList.add("d");

//------------------------

var q = from s in tList
select s;

var qa = from s in tList.AsParallel()
select s;

//------------------------并行
Parallel.For(0,6,i=>
{

});


Parallel.ForEach(tList, str => {


});

原文地址:https://www.cnblogs.com/qq4004229/p/3126720.html