title: Is deadlock possible when locking one global object in ASP.NET MVC application?
body: <p>For locking I am using a single static object which is global to my application:</p>
  
  <pre><code>public class MvcApplication : System.Web.HttpApplication
  {        
      public static readonly object AppLock = new object();
      ...
  }
  </code></pre>
  
  <p>Using it for locking in code:</p>
  
  <pre><code>lock(MvcApplication.AppLock)
  {
      ...
  }
  </code></pre>
  
  <p>Let us not consider performance impact for a moment. Can I be 100% sure that I will avoid deadlock in this case? </p>