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?
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 |
what the differences are among domain local groups, domain global, and universal groups
what hardware is required for connecting computers in Network?
What types of VPN does Windows 2000 and beyond work with natively?
I am unable to access other Pc within network without domain. when i am doing to access other Pc within lan like //192.168.1.11 it gives error message like "the network location cannot reached.For information about network troubleshooting, see windows help" what is the solution?
What is tombstone lifetime attribute?
A Computer gets shutdown as soon as it is plugged in with a cracking noise what is the reason and how to recover it and bring to normal state?brief description what are the necessary steps taken to bring the system up to normal state?
1 byte is equal?
Can you connect Active Directory to other 3rd-party Directory Services? Name a few options.
Trying to look at the Schema, how can I do that?
how do you manage the sustem administrator job
what is the process to retreive emails which has been deleted in Outlook from Exchange Server?
What can you do to promote a server to DC if you're in a remote location with slow WAN link?