title: Are rails controllers multithreaded? Thread.exclusive in controllers
body: <p>Are Rails controllers multithreaded? </p>
  
  <p>If so, can I protect a certain piece of code (which fires only once every ten minutes) from being run from multiple threads by simply doing</p>
  
  <pre><code>require 'thread'
  Thread.exclusive do
       # stuff here
  end
  </code></pre>
  
  <p>on do I need to somehow synchronize on a monitor?</p>