单项选择题
You are developing an application that will perform mathematical calculations.You need to ensure that the application is able to perform multiple calculations simultaneously.
What should you do?()
A.Set the IdealProcessor property of the ProcessThread object.
B.Set the ProcessorAffinity property of the ProcessThread object.
C.For each calculation, call the QueueUserWorkItem method of the ThreadPool class.
D.Set the Process.GetCurrentProcess().BasePriority property to High.
相关考题
-
单项选择题
Your application uses two threads, named threadOne and threadTwo.You need to modify the code to prevent the execution of threadOne until threadTwo completes execution. What should you do?()
A.Configure threadOne to run at a lower priority.
B.Configure threadTwo to run at a higher priority.
C.Use a WaitCallback delegate to synchronize the threads.
D.Call the Sleep method of threadOne.
E.Call the SpinLock method of threadOne. -
多项选择题
You create a service application that monitors free space on a hard disk drive. You must ensure that the service application runs in the background and monitors the free space every minute. What should you do?()
A.Add code to the default constructor of the Service class to monitor the free space on the hard disk drive.
B.Add code to the OnStart method of the Service class to monitor the free space on the hard disk drive.
C.Add an instance of the System.Windows.Forms.Timer class to the Service class and configure it to fire every minute.
D.Add an instance of the System.Timers.Timer class to the Service class and configure it to fire every minute.
E.Add code to the OnStart method of the Service class to start the timer.
F.Add code to the Elapsed event handler of the timer to monitor the free space on the hard disk drive.
G.Add code to the Tick event handler of the timer to monitor the free space on the hard disk drive. -
单项选择题
您最近创建的业务应用程序引用另一个强名称程序集命名library.dll,并将其部署到Certkiller.com的所有用户。 之后,测试应用程序的性能,您选择升级到1.1.0.0的程序集的版本。 您需要确保新版本将不会影响任何Certkiller.com的当前用户的通过将适当的元素添加到应用程序配置文件中的assemblyBinding元。 您应添加哪些元素?()
A.
B.
C.
D.
