You work as the application developer at Certkiller .com.
You need to modify the
code of an application. The application uses two threads
named thread A and
thread B. You want thread B to complete executing before
thread A starts
executing.
How will you accomplish the task?



You work as the application developer at Certkiller .com. You need to modify the code of an applic..

Answer / gaaa

A. Define thread A to run at a lower priority.
B. Define thread B to run at a higher priority.
C. Implement the WaitCallback delegate to synchronize the
threads.
D. Call the Sleep method of thread A.
E. Call the SpinLock method of thread A.

Answer: C

Explanation:
Note: Some confusion why the answer is C. Using the
ThreadPool and WaitCallBack
will not synchronise the threads, they will run in the
background in parallel

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More Microsoft Certifications Interview Questions

• How do you view all the GCs in the forest? • Why not make all DCs in a large forest as GCs? • Trying to look at the Schema, how can I do that? • What are the Support Tools? Why do I need them? • What is LDP? What is REPLMON? What is ADSIEDIT? What is NETDOM? What is REPADMIN?

3 Answers  


How to solve problem of Blank screen in laptop within 5 minutes. everything is running fine in my laptop but screen is blank even i remove RAM & Insert again in RAM slot & also try to battery same as but problem is as it is Plz give me answer if you know

3 Answers   HP,


what is the process to retreive emails which has been deleted in Outlook from Exchange Server?

1 Answers  


I want to look at the RID allocation table for a DC. What do I do?

2 Answers  


Difference between IP V-4 and IP V-6?

2 Answers  


Name a few benefits of using GPMC.

1 Answers  


What do you do to install a new Windows 2003 R2 DC in a Windows 2003 AD?

0 Answers   Wipro,


1 byte is equal?

4 Answers   TCS,


What's the difference between transferring a FSMO role and seizing one? Which one should you NOT seize? Why?

1 Answers  


what is file server . and how to configure ?

7 Answers  


What Is The Function of Configuration Partition?

2 Answers  


What can I do to prevent inheritance from above?

3 Answers   DELL,


Categories
  • Cisco Certifications Interview Questions Cisco Certifications (2321)
  • Microsoft Certifications Interview Questions Microsoft Certifications (171)
  • Sun Certifications Interview Questions Sun Certifications (45)
  • CISA Certification Interview Questions CISA Certification (744)
  • Oracle Certifications Interview Questions Oracle Certifications (64)
  • ISTQB Certification Interview Questions ISTQB Certification (109)
  • Certifications AllOther Interview Questions Certifications AllOther (295)