开发者

Jetty 6 - QueuedThreadPool versus ThreadPool

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.

My server has Java 6 installed so I was thinking that I should use the ThreadPool:

<New class="org.mortbay.thread.QueuedThreadPool">
            <Set name="minThreads">10</Set>
            <Set name="maxThreads">200</Set>
            <Set name="lowThreads">20</Set>
            <Set name="SpawnOrShrinkAt">2</Set>
        </New>

<New class="org.mortbay.thread.concurrent.ThreadPool">
            <Set name="corePoolSize">50</Set>
            <Set name="ma开发者_JAVA百科ximumPoolSize">50</Set>
        </New>

Thanks, Walter

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜