title: c# why put object in the lock statement
body: <p>Can someone clarify me:</p>
  
  <p>The statements inside the lock will be locked no one can go through unless it's finished and release the lock. then what is the object inside the lock used for</p>
  
  <pre><code>lock (obj) 
  { 
    ///statement 
  }
  </code></pre>
  
  <p>Does that mean the obj is being locked and cannot be used from anywhere else unless the lock has done his work.</p>