You use Microsoft .NET Framework 4 to create an application. The application performs resource-intensive calculations that consist of multiple layers of nested looping. The application will be deployed to servers that contain varying hardware configurations. You need to ensure that the application utilizes CPU resources on the server in the most efficient manner. You want to achieve this goal by using the minimum amount of code. What should you do?()
- A、 Use multiple System.Threading.Thread objects.
- B、 Use the background worker process (BWP).
- C、 Use the Thread.BeginInvoke method.
- D、 Use the Parallel.For method.
正确答案:D
答案解析:有
微信扫一扫手机做题