title: What type of locking mechanism does lock statement use
body: <p>Does the c# lock keyword use a 'yielding', 'spin-locking' or hybrid approach to handle contention?</p>
  
  <p>So far my searches on the .net lock statement hasn't turned up an answer.
  I will post if I do find any more.
  So far all I could find is <a href="https://stackoverflow.com/questions/5869825/when-should-one-use-a-spinlock-instead-of-mutex">When should one use a spinlock ...</a> with a nicely worded accepted answer by Mecki.</p>
  
  <p>But I am looking for some definitive answer or documentation regarding .net/c# if anyone has one.</p>