On Nov 13, 2007 6:38 PM, Steven <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > I'm confused by the setting of the number of the I/O processor thread. > > I have read this article Configuring Thread Model > > In this paper,it said that one can't configure the number of the acceptor > threads and the connector threads, but can configure the number of the I/O > processor threads. > > So I change the following code in the EchoServer example > > IoAcceptor acceptor = new SocketAcceptor(); > > to > > IoAcceptor acceptor = new SocketAcceptor(1, Executors.newCachedThreadPool()); > > And then I run the server and connect the server with 3 clients, and I found > that lots of daemon threads are generated. > > Firstly, I thought there is one I/O processor thread for one IoHandler, and > now it seems that it is not that way. > > Can someone tell me what are these daemon threads used for? > > And what should I do if I want one I/O processor thread handles lots of > connections?
Are you sure you disabled ThreadModel? If so, please provide me the full thread dump. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
