开发者

Jetty 6 - QueuedThreadPool versus ThreadPool

开发者 https://www.devze.com 2022-12-09 21:09 出处:网络
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.

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

精彩评论

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