Well, I guess I could not ask the question the right way. Actually by digging more into documentation and source code I think I understood the difference. Anyway let me restate what I understood:<div><br></div><div>There are two types of "worker" thread pools in Netty. First one (set in <span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">NioServerSocketChannelFactory constructor</span> ) is responsible for doing I/O operations and the second one (added as a handler to the pipeline, namely ExecutionHandler) is responsible for application logic. Right?</div>
<div><br></div><div>Thanks.</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><div><br><div class="gmail_quote">On Sat, Jun 18, 2011 at 17:52, "이희승 (Trustin Lee)" <span dir="ltr"><<a href="mailto:trustin@gmail.com">trustin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The first one is used for boss threads and the second one is for worker threads. A worker thread performs actual reads and writes. A boss thread accepts a new incoming connection or makes a new connection attempt. Once a new connection is accepted or a connection attempt succeeds, the new channel is handed off to one of the worker threads. For now, there's no way to set the boss thread count.<br>
<br>
HTH<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Ersin Er<br>
</div></div>