title: How to start and stop a Sinatra application using Thin on Windows?
body: <pre><code>class App &lt; Sinatra::Base
    def hello
      "world"
    end
  end
  </code></pre>
  
  <p>From documentation I found that I can start the application like this:</p>
  
  <pre><code>App.run
  </code></pre>
  
  <p>Although this does not return the control.</p>
  
  <p>How do I start the application in the background and how can I then stop it.</p>
  
  <p>My environment is: Windows, Ruby 1.9.2</p>