You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application uses the LINQ ParallelEnumerable. AsParallel method to perform multiple queries on a database. You need to ensure that queries can execute on separate threads concurrently. What should you do? ()
- A、 Use the AsOrdered method.
- B、 Use the SelectMany method.
- C、 Use the AutoBuffered option in the WithMergeOptions method.
- D、 Use the WithExecutionMode method with the ParallelExecutionMode.ForceParallelism parameter.
正确答案:D
答案解析:有

微信扫一扫手机做题