When is it appropriate to use either the Monitor class or the lock keyword for thread safety in C#?
Monitor
lock
EDIT: It seems from th
In addition to all above explanations, lock is a C# statement whereas Monitor is a class of .NET located in System.Threading namespace.