PrepAway - Latest Free Exam Questions & Answers

What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 Windows Service application. You are required to synchronize execution of some resources across multiple processes.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Use the Mutex class.

B.
Use the Interlocked class.

C.
Use the Monitor class.

D.
Use the ReaderWriterLock class.

Explanation:
The Mutex class can be used for the synchronization of thread execution across multiple processes.
Incorrect Answers:
B, C, D: The classes in question in these options can not be used in the scenario because they can only be used within a single process.

One Comment on “What should you do?


Leave a Reply