A. B. C. D.
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.