GIAC
GSSP-NET · Question #361
GIAC GSSP-.NET Exam You work as a Software Developer for ABC Inc. You have created a console application that uses two threads, named thread1 and thread2. You need to modify the code to prevent the…
The correct answer is A. Use a WaitCallBack delegate to synchronize the threads. See the full explanation below for the reasoning.
Question
GIAC GSSP-.NET Exam You work as a Software Developer for ABC Inc. You have created a console application that uses two threads, named thread1 and thread2. You need to modify the code to prevent the execution of thread1 until thread2 completes its execution. Which of the following steps will you take to accomplish this task?
Options
- AUse a WaitCallBack delegate to synchronize the threads.
- BCall the sleep() method of thread1.
- CCall the SpinWait() method of thread1.
- DConfigure thread1 to run at a lower priority.
- EConfigure thread2 to run at a higher priority.
How the community answered
(39 responses)- A79% (31)
- B3% (1)
- C3% (1)
- D10% (4)
- E5% (2)
Community Discussion
No community discussion yet for this question.