title: How to make sinatra process requests simultaneously?
body: <p>I have simple <a href="http://www.sinatrarb.com/" rel="nofollow">sinatra</a> script </p>
  
  <pre><code>require 'rubygems' 
  require 'sinatra'  
  
  get '/' do
    %x[sleep.bat] #dos batch file that waits for 10sec
  end
  </code></pre>
  
  <p>which simulates my real sintra script that calls ant script. The ant run can finish in an hour or so. <strong>I want to use my sinatra application while the ant run is running.</strong> But sinatra waits till the ant run finishes. Then it processes whatever requests I made meanwhile.</p>
  
  <p>I use</p>
  
  <ul>
  <li>Windows XP SP3</li>
  <li>ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]</li>
  <li>sinatra (1.2.6, 1.0)</li>
  <li>and one rb file</li>
  </ul>