Handler and Boss thread

I start with the bare netty in the project.

I am still experiencing all the amazing javadoki, but I do not understand.

So far I have received:

Is there one Boss thread that starts the download and directly connects the server to the socket port? Workflows (maybe many of them) process incoming connections and correctly create pipes and pipelines?

But then we have an ExecutionHandler that can also spam several other threads? My point is that if I have 10 worker threads and an ExecutionHandler from corepoolsize = 16, does this mean that I can complete 160 simultaneous threads on my system with a very heavy load?

Sorry, this seems like a dumb question, but I'm just trying to understand this part in the docs.

Greetings

+3
source share
1 answer

Your understanding for the Boss and Workers is correct.

For ExecutionHandler, this is slightly different. Handling ExecutionHandler events for an additional ThreadPool. This helps ensure that you are not blocking Worker threads. The ExecutionHandler MUST be split between different Channels, as well as between Employers.

So, if you have work number 10 and the size of the pool with core-thread 16, you will have 26 threads + boss thread.

Hope this makes it clear.

+10
source

All Articles