One more related question:<div><br></div><div>Considering the following constructor:</div><div><br></div><div><div>public NioServerSocketChannelFactory(</div><div>            Executor bossExecutor, Executor workerExecutor,</div>

<div>            int workerCount)</div><div><br></div><div>How is workerCount ad workerExecutor (and its pool size) related? Isn&#39;t the number of I/O worker threads fixed by the workerExecutor? What happens if I pass a Executors.newFixedThreadPool(8) as workerThreads to this constructor?</div>

<div><br></div><div>Thanks again,</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><br><div class="gmail_quote">On Sun, Jun 19, 2011 at 00:03, Ersin Er <span dir="ltr">&lt;<a href="http://ersin.er">ersin.er</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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 &quot;worker&quot; thread pools in Netty. First one (set in <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><div><div><div><div></div><div class="h5"><br><div class="gmail_quote">On Sat, Jun 18, 2011 at 17:52, &quot;이희승 (Trustin Lee)&quot; <span dir="ltr">&lt;<a href="mailto:trustin@gmail.com" target="_blank">trustin@gmail.com</a>&gt;</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&#39;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" target="_blank">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></div></div>-- <br>Ersin Er<br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Ersin Er<br>
</div>