单项选择题
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. -
单项选择题
You develop a service application that needs to be deployed. Your network administrator creates a specific user account for your service application.You need to configure your service application to run in the context of this specific user account. What should you do?()
A.Prior to installation,set the StartType property of the ServiceInstaller class.
B.Prior to installation,set the Account,Username,and Password properties of theServiceProcessInstaller class.
C.Use the CONFIG option of the net.exe command-line tool to install the service.
D.Use the installutil.exe command-line tool to install the service.
