title: Performance of synchronize section in Java
body: <p>I had a small dispute over performance of <code>synchronized</code> block in Java. This is a theoretical question, which does not affect real life application.  </p>
  
  <p>Consider single-thread application, which uses locks and synchronize sections. Does this code work slower than the same code without synchronize sections? If so, why? We do not discuss concurrency, since it’s only single thread application</p>
  
  <p><strong>Update</strong></p>
  
  <p>Found interesting  <a href="http://www.ibm.com/developerworks/library/j-threads1/index.html" rel="noreferrer">benchmark</a> testing it. But it's from 2001. Things could have changed dramatically in the latest version of JDK</p>