Question:You are creating an application that performs time-consuming calculations. You create a method named Calc that performs the calculations. You need to provide two integer values to Calc. What should you do? (Each answer forms part of the complete solution. Choose all that apply.) - VB.NET
 

A Call ThreadPool.GetAvailableThreads to retrieve a handle to the thread. 

B Create a custom class that contains two integer members and create an instance of that class containing the values that you need to pass to the method. 

C Create a custom class that contains two integer members and a delegate for the Calc method and create an instance of that class containing the values you need to pass to the method. 

D Call ThreadPool.QueueUserWorkItem and pass the Calc method and the instance of the custom class. 

E Call ThreadPool.QueueUserWorkItem and pass only the instance of the custom class.
 

+ Answer
+ Report
Total Preview: 1244

Copyright © 2024. Powered by Intellect Software Ltd