单项选择题
为应用程序开发人员上班Certkiller.com。
您需要修改应用程序的代码。
应用程序使用两个线程命名线程A和线程B.要完成执行之前线程开始执行线程B。
您将如何完成这项任务?()
A.定义线程A在较低的优先级运行。
B.定义线程B在更高的优先级运行。
C.执行WaitCallback委托来同步线程。
D.调用线程A睡眠的方法
E.调用线程A自旋锁的方法
点击查看答案
相关考题
-
单项选择题
为应用程序开发人员上班 Certkiller.com。您正在开发现有应用程序的调试的版本。您想要查找特定导致发生异常的代码行。选择的异常类,您应该使用来完成这一任务的属性。()
A.数据属性
B.消息属性
C.栈跟踪,即可属性
D.源属性 -
多项选择题
为应用程序开发人员上班 Certkiller.com。创建一个新的类使用的非托管的资源,但其中仍有其他对象对托管资源的引用。 您希望新类的用户能够不再需要的类的实例时,显式地释放资源。 下一步你该怎么办?() 选择您要执行的三个操作。每一个正确的答案显示唯一的完整的解决方案的一部分。
A.定义的现有的类,以便使它从WeakReference类继承。
B.定义的现有的类,以便它适用IDisposable接口。
C.创建新的类析构函数,其他释放托管的资源的对象上调用方法。
D.创建新类析构函数释放非托管的资源。
E.创建一种新的处理方法调用System GC Collect,强制进行垃圾回收。
F.创建一个新的处理方法,释放非托管的资源,并还呼吁释放托管的资源的其他对象方法,其中。 -
单项选择题
You create a class library that contains the class hierarchy defined in the following code segment. (Line numbers are included for reference only.) You create an instance of the Group class. You populate the fields of the instance. When you attempt to serialize the instance by using the Serialize method of the XmlSerializer class, you receive InvalidOperationException. You also receive the following error message: "There was an error generating the XML document."You need to modify the code segment so that you can successfully serialize instances of the Group class by using the XmlSerializer class. You also need to ensure that the XML output contains an element for all public fields in the class hierarchy. What should you do?()
A.A
B.B
C.C
D.D
