单项选择题
A.使用互斥锁类。
B.使用Interlocked类。
C.使用Monitor类。
D.使用ReaderWriterLock类。
单项选择题 You are creating an application that lists processes on remote computers. The application requires a method that performs the following tasks: Accept the remote computer name as a string parameter named strComputer. Return an ArrayList object that contains the names of all processes that are running on that computer. You need to write a code segment that retrieves the name of each process that is running on the remote computer and adds the name to the ArrayList object. Which code segment should you use?()
单项选择题 将在多处理器系统中使用的网络框架2.0Windows服务应用程序。您正在编写一个包含名为Testcounter的全局访问整数变量的类的代码。Testcounter的值将递增的递减从单独的线程中运行的其他类。您是需要提供原子和非阻塞更新为Testcounter,虽然您的解决方案提供了最佳的性能。你应该做什么?()
单项选择题 你正在开发一个执行数学计算的应用程序。你创建了一个类CalculationValues,并且写了一个操作CalculationValues类的实例的、名为PerformCalculation的程序。你需要保证当计算被执行的时候,用户界面能够继续响应。为此,你需要写一个代码段去调用PerformCalculation过程去达到目的,你应该使用下面那个代码段?()