mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee" <trus...@gmail.com>
Subject Re: sharing Executor between IoServices
Date Fri, 05 Oct 2007 09:01:18 GMT
On 10/4/07, Mark <elihusmails@gmail.com> wrote:
> In the Confuguring Thread Model tutorial (
> http://mina.apache.org/configuring-thread-model.html), is says
> "It is not recommended to share one thread pool for IoServices and
> ExecutorFilters."
> Is it OK to use the same executor that gets passed in to a
> NioSocketAcceptor's constructor?  I think that this could help solve the
> issue I entered into JIRA (https://issues.apache.org/jira/browse/DIRMINA-453
> )

It is OK as long as:

* cached thread pool is used or
* you counted the number of required thread correctly. :D

With global worker thread pool, things will become much easier as you said.

what we call human nature is actually human habit
PGP Key ID: 0x0255ECA6

View raw message