title: Synchronized Method for concurrency in Ruby
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3208462/does-ruby-have-the-java-equivalent-of-synchronize-keyword">Does ruby have the Java equivalent of synchronize keyword?</a>  </p>
  </blockquote>
  
  
  
  <p>In Java we can make a method 'synchronized' by just using the 'synchronized' keyword in the function definition.</p>
  
  <p>How do we do it in Ruby?</p>