title: Difference between lock(this) and a lock on static object
body: <p>Which of the following two code snippets is better to use?</p>
  
  <pre><code>static readonly object _locker = new object();
  lock (_locker)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>lock (this)
  </code></pre>
  
  <p><code>this</code> is an object of the current instance. So why is <code>lock (_locker)</code> always in the books?</p>
  
  <blockquote>
    <p><strong>Related:</strong><br>
    <a href="https://stackoverflow.com/questions/6815332/what-is-the-difference-between-lockthis-and-lockthislock">What is the difference between lock(this) and lock(thisLock)?</a><br>
    <a href="https://stackoverflow.com/questions/251391/why-is-lockthis-bad">Why is lock(this) {&hellip;} bad?</a>  </p>
  </blockquote>