This is an automated email from the ASF dual-hosted git repository.
hyunkun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new d8f4d73 Update thread-model.md
d8f4d73 is described below
commit d8f4d7392c562a86d8e8bbc48f55d5cc5fc506da
Author: Huang YunKun <[email protected]>
AuthorDate: Tue Nov 5 17:40:12 2019 +0800
Update thread-model.md
fix #504
---
docs/zh-cn/user/demos/thread-model.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/zh-cn/user/demos/thread-model.md
b/docs/zh-cn/user/demos/thread-model.md
index ef662e2..84e697d 100644
--- a/docs/zh-cn/user/demos/thread-model.md
+++ b/docs/zh-cn/user/demos/thread-model.md
@@ -20,7 +20,7 @@ Dispatcher
* `all` 所有消息都派发到线程池,包括请求,响应,连接事件,断开事件,心跳等。
* `direct` 所有消息都不派发到线程池,全部在 IO 线程上直接执行。
* `message` 只有请求响应消息派发到线程池,其它连接断开事件,心跳等消息,直接在 IO 线程上执行。
-* `execution` 只请求消息派发到线程池,不含响应,响应和其它连接断开事件,心跳等消息,直接在 IO 线程上执行。
+* `execution` 只有请求消息派发到线程池,不含响应,响应和其它连接断开事件,心跳等消息,直接在 IO 线程上执行。
* `connection` 在 IO 线程上,将连接断开事件放入队列,有序逐个执行,其它消息派发到线程池。
ThreadPool
@@ -28,4 +28,4 @@ ThreadPool
* `fixed` 固定大小线程池,启动时建立线程,不关闭,一直持有。(缺省)
* `cached` 缓存线程池,空闲一分钟自动删除,需要时重建。
* `limited` 可伸缩线程池,但池中的线程数只会增长不会收缩。只增长不收缩的目的是为了避免收缩时突然来了大流量引起的性能问题。
-* `eager`
优先创建`Worker`线程池。在任务数量大于`corePoolSize`但是小于`maximumPoolSize`时,优先创建`Worker`来处理任务。当任务数量大于`maximumPoolSize`时,将任务放入阻塞队列中。阻塞队列充满时抛出`RejectedExecutionException`。(相比于`cached`:`cached`在任务数量超过`maximumPoolSize`时直接抛出异常而不是将任务放入阻塞队列)
\ No newline at end of file
+* `eager`
优先创建`Worker`线程池。在任务数量大于`corePoolSize`但是小于`maximumPoolSize`时,优先创建`Worker`来处理任务。当任务数量大于`maximumPoolSize`时,将任务放入阻塞队列中。阻塞队列充满时抛出`RejectedExecutionException`。(相比于`cached`:`cached`在任务数量超过`maximumPoolSize`时直接抛出异常而不是将任务放入阻塞队列)