title: Netty - Specifying the number of thread to create
body: <p>Let me ask several questions regarding thread with Netty.</p>
  
  <p>Q1. Which thread is created?
  According to documentation, following constructor creates multiple threads (2 * the number of avail processors). It means that it creates multiple boss threads or worker threads? My assumption is 1 boss thread and multiple worker thread. Am I correct?</p>
  
  <p>public NioServerSocketChannelFactory(Executor bossExecutor, Executor workerExecutor)
  Creates a new instance. Calling this constructor is same with calling NioServerSocketChannelFactory(Executor, Executor, int) with 2 * the number of available processors in the machine. </p>
  
  <p>Q2. According to the documentation, it seems to me that I can specify the max number of worker thread with following constructor. Can I implicitly specify exact number of worker thread to create - say 16?</p>
  
  <p>public NioServerSocketChannelFactory(Executor bossExecutor,
                                       Executor workerExecutor,
                                       int workerCount)
  Creates a new instance.
  Parameters:
  bossExecutor - the Executor which will execute the boss threads
  workerExecutor - the Executor which will execute the I/O worker threads
  workerCount - the maximum number of I/O worker threads</p>
  
  <p>Q3. Is there any way to know the number of boss and worker threads that currently run?</p>
  
  <p>Any help is greatly appreciated!</p>