并行计算

 

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 => {


});

posted @ 2013-06-08 14:45  咸鱼公子  Views(172)  Comments(0Edit  收藏  举报