feel free to ask more!
I have, thanks for the offer.
Basically, MINA was designed as a SEDA based framework (even if this
target has been lost in the meantime, somehow ...). Since then, it has
evolved a bit.
My recollection of SEDA is that it had a single thread managing all socket IO
), and have that handle any number of
connected clients.
Chris Popp
From: gonzalo diethelm gdieth...@dcv.cl
To: users@mina.apache.org
Sent: Wednesday, June 10, 2009 10:08:57 AM
Subject: RE: MINA and threads
feel free to ask more!
I have, thanks for the offer
From: Christopher Popp [mailto:christopherp...@yahoo.com]
Sent: Wednesday 10 Jun 2009 11:22
To: users@mina.apache.org
Subject: Re: MINA and threads
I think you might be confusing the thread model a bit...with MINA you
don't need a thread per client. There is one thread listening which
Christopher Popp wrote:
I think you might be confusing the thread model a bit...with MINA you don't
need a thread per client. There is one thread listening which handles
accepting connections. There are then a configurable pool of I/O handling
threads (defaulting to # of cores +1) which
Although not strictly necessary, I would have the expectation that,
since MINA is based on NIO, it should be possible to build a single
executable that listens on a port and connects to itself on that port,
all from a single thread. Is this possible at all?
I ask because I have been toying
gonzalo diethelm wrote:
Although not strictly necessary, I would have the expectation that,
since MINA is based on NIO, it should be possible to build a single
executable that listens on a port and connects to itself on that port,
all from a single thread. Is this possible at all?
No. As soon
Although not strictly necessary, I would have the expectation that,
since MINA is based on NIO, it should be possible to build a single
executable that listens on a port and connects to itself on that
port,
all from a single thread. Is this possible at all?
No. As soon as you create an
gonzalo diethelm wrote:
Although not strictly necessary, I would have the expectation that,
since MINA is based on NIO, it should be possible to build a single
executable that listens on a port and connects to itself on that
port,
all from a single thread. Is this possible at all?
Implementing everything with a single thread means that we use one
selector to handle the accept and the session. possible, but then, why
using MINA ? You can do that with a simple SocketServer, a selector and
a few glue around it.
The idea with MINA was to create a scalable NIO framework,
gonzalo diethelm wrote:
Implementing everything with a single thread means that we use one
selector to handle the accept and the session. possible, but then, why
using MINA ? You can do that with a simple SocketServer, a selector and
a few glue around it.
The idea with MINA was to create a
10 matches
Mail list logo