You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Hieu Phan Thanh <hi...@Cybersoft-VN.com> on 2006/11/24 08:16:24 UTC

Why use only one thread pool in MINA-1.0 instead of 2 thread pools (IO and Protocol) in MINA-0.8?

Hi all, 
I'm wondering about the reason why MINA team merged into only one thread
pool instead of 2 thread pools (IO and Protocol) in mina-0.8.
Is there any advantage point or something? 
Please share your knowledge.

Thanks & best regards,
Hieu Phan.


Re: Why use only one thread pool in MINA-1.0 instead of 2 thread pools (IO and Protocol) in MINA-0.8?

Posted by Trustin Lee <tr...@gmail.com>.
On 11/24/06, Hieu Phan Thanh <hi...@cybersoft-vn.com> wrote:
>
> Hi all,
> I'm wondering about the reason why MINA team merged into only one thread
> pool instead of 2 thread pools (IO and Protocol) in mina-0.8.
> Is there any advantage point or something?


More stages (or phase or thread pool) means more latency.  We just don't
know what the best thread model is.  We just chose the most simple one.  You
could run some performance tests and suggest a better default model.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6