Is it redundant to set bossGroup to multithreading
This article mainly introduces whether bossGroup is set to multithreading is superfluous, the article is very detailed, has a certain reference value, interested friends must read it!
Is the number of threads in bossGroup in non-master-slave mode related to the number of ports? if the server only opens one port for clients to link, is it unnecessary to set bossGroup to multithreading?
It's superfluous. you understand it very well. it can really be matched so simply, that is, by port.
Just because it's redundant, you can explicitly set it to 1 directly, but it doesn't do much harm, because others don't start redundant threads.
The above is all the contents of the article "whether bossGroup is set to multithreading is redundant". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!