dubbo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] beiwei30 closed pull request #13: New thread model: eager
Date Tue, 10 Apr 2018 09:46:25 GMT
beiwei30 closed pull request #13: New thread model: eager
URL: https://github.com/apache/incubator-dubbo-docs/pull/13
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/dubbo-user-book/demos/thread-model.md b/dubbo-user-book/demos/thread-model.md
index a1c7cfa..ef662e2 100644
--- a/dubbo-user-book/demos/thread-model.md
+++ b/dubbo-user-book/demos/thread-model.md
@@ -27,4 +27,5 @@ ThreadPool
 
 * `fixed` 固定大小线程池,启动时建立线程,不关闭,一直持有。(缺省)
 * `cached` 缓存线程池,空闲一分钟自动删除,需要时重建。
-* `limited` 可伸缩线程池,但池中的线程数只会增长不会收缩。只增长不收缩的目的是为了避免收缩时突然来了大流量引起的性能问题。
\ No newline at end of file
+* `limited` 可伸缩线程池,但池中的线程数只会增长不会收缩。只增长不收缩的目的是为了避免收缩时突然来了大流量引起的性能问题。
+* `eager` 优先创建`Worker`线程池。在任务数量大于`corePoolSize`但是小于`maximumPoolSize`时,优先创建`Worker`来处理任务。当任务数量大于`maximumPoolSize`时,将任务放入阻塞队列中。阻塞队列充满时抛出`RejectedExecutionException`。(相比于`cached`:`cached`在任务数量超过`maximumPoolSize`时直接抛出异常而不是将任务放入阻塞队列)
\ No newline at end of file


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message