On 12/16/06, Newcomb, Michael-P57487 <[EMAIL PROTECTED]> wrote:

Well,

I want to accept incoming requests on all 4 nics (each with different
port). So, I create 4 SocketAcceptors.  My main question does
Selector.open() create a Thread each time? So, each SocketAcceptor will
have 1 thread solely dedicated to reading/writing bytes?


Hmm it seems like there should be a method that allows you to bind to
multiple SocketAddresses at once.  Right?  Could you please file this issue
to the JIRA?

So, EACH SocketAcceptor would have 1 selector thread and however many
threads are in it's ThreadModel?


If you set the same ThreadModel instance to each acceptor, then the thread
pool (executor) will be shared among them.  If you create a new instance of
ThreadModel per acceptor, the thread pool will not be shared at all.

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

Reply via email to