1.

Which keyword is used for using the synchronization features defined by the Monitor class?(a) lock(b) synchronized(c) monitor(d) lockedThe question was asked during an online exam.My question is taken from Multithreaded Programming topic in division Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

Answer»

Correct option is (a) LOCK

Best explanation: The C# keyword lock is really just shorthand for USING the synchronization features defined by the MONITOR CLASS, which is defined in the System.Threading namespace.



Discussion

No Comment Found

Related InterviewSolutions