You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by 秦金卫 <ki...@163.com> on 2018/11/11 16:39:09 UTC
LimitedThreadPool is the same with CachedThreadPool?
Hi, Community,
I found LimitedThreadPool[1] is the same with CachedThreadPool[2],
But in some posts, they are described as a different things, like here[3]:
- LimitedThreadPool is "Creates a thread pool that creates new threads as needed until limits reaches. This thread pool will not shrink
automatically".
- CachedThreadPool is "This thread pool is self-tuned. Thread will be recycled after idle for one minute, and new thread will be created for
the upcoming request".
And what's wrong with them?
1:
https://github.com/apache/incubator-dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/threadpool/support/limited/LimitedThreadPool.java
2:
https://github.com/apache/incubator-dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/threadpool/support/cached/CachedThreadPool.java
3.
https://www.jianshu.com/p/d73ecc7734df