RE: MINA and threads

2009-06-10 Thread gonzalo diethelm
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

Re: MINA and threads

2009-06-10 Thread Christopher Popp
), 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

RE: MINA and threads

2009-06-10 Thread gonzalo diethelm
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

Re: MINA and threads

2009-06-10 Thread Emmanuel Lecharny
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

MINA and threads

2009-06-09 Thread gonzalo diethelm
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

Re: MINA and threads

2009-06-09 Thread Emmanuel Lecharny
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

RE: MINA and threads

2009-06-09 Thread gonzalo diethelm
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

Re: MINA and threads

2009-06-09 Thread Emmanuel Lecharny
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?

RE: MINA and threads

2009-06-09 Thread gonzalo diethelm
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,

Re: MINA and threads

2009-06-09 Thread Emmanuel Lecharny
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