What is the purpose of object in Lock argument. Here is an example:
public class TestThreading
{
private System.Object lockThis = new System.Object();
public void Process()
{
lock (lockThis)
{
// Access thread-sensitive resources.
}
}
}
... does this 'lockThis' object pass anything into the Lock body. Why can't I use Lock statement without object in argument.