In netty I create a channel factory as follows.
ChannelFactory factory = new NioServerSocketChannelFactory( Executors.newCachedThreadPool(threadFactory), Executors.newCachedThreadPool(threadFactory);
When a new request comes, how does the boss thread allocate a free worker thread to the new request from the workerthread pool? In which netty class can I find this logic?