title: Jetty 6 - QueuedThreadPool versus ThreadPool
body: <p>I am using Jetty 6 and was wondering when the QueuedThreadPool should be used over the ThreadPool?  By default, Jetty 6 comes configured with the QueuedThreadPool.</p>
  
  <p>My server has Java 6 installed so I was thinking that I should use the ThreadPool:</p>
  
  <pre><code>&lt;New class="org.mortbay.thread.QueuedThreadPool"&gt;
              &lt;Set name="minThreads"&gt;10&lt;/Set&gt;
              &lt;Set name="maxThreads"&gt;200&lt;/Set&gt;
              &lt;Set name="lowThreads"&gt;20&lt;/Set&gt;
              &lt;Set name="SpawnOrShrinkAt"&gt;2&lt;/Set&gt;
          &lt;/New&gt;
  
  &lt;New class="org.mortbay.thread.concurrent.ThreadPool"&gt;
              &lt;Set name="corePoolSize"&gt;50&lt;/Set&gt;
              &lt;Set name="maximumPoolSize"&gt;50&lt;/Set&gt;
          &lt;/New&gt;
  </code></pre>
  
  <p>Thanks,
  Walter</p>