1.

What is mutex?(a) a mutually exclusive synchronization object(b) can be acquired by more than one thread at a time(c) helps in sharing of resource which can be used by one thread(d) all of the mentionedThe question was posed to me in examination.My question comes from Multithreaded Programming topic in division Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

Answer»

The correct ANSWER is (a) a MUTUALLY exclusive SYNCHRONIZATION object

The BEST explanation: A mutex is a mutually exclusive synchronization object. This means it can be acquired by ONE and only one thread at a time. The mutex is designed for those situations in which a shared resource can be used by only one thread at a time.



Discussion

No Comment Found

Related InterviewSolutions