#眉標=VS2010、Visual C++、.NET 4.0 #副標=Visual Studio 2010搶先看 #大標=Visual Studio 2010開發工具再躍昇(下) #作者=文/圖 王寧疆 ===<反灰>============= var q = from file in fileList.AsParallel() where file.Length > 10000 select file; ================ ===<反灰>============= var orders = GetOrders(); Parallel.ForEach(orders, order => { if(order.IsValid) { order.Process(); } }); ================ ===<反灰>============= for(int i=0; i<100; ++i) { 程式碼 } ================ ===<反灰>============= parallel_for(0, 100, 1, [&](int i) { 程式碼 } ); ================