Lets say that our selector can handle 64 sockets, and we have 640 connections to handle. So we have 10 selectors, 64 sockets for each and we check each selector for ready sockets.
Is that faster than iterating through simple socket array (or container)?
This doesn't produce the same results.
If you use more than one selector, you will have to wait until the first one receives data (or timeout) to proceed with the second one, etc.
If you use multiple sockets it's exactly the same, replace "selector" with "socket". Unless the sockets are in non-blocking mode, which would be the only good solution in this context. But this is a totally different approach.
How do i know how much sockets selector can handle in system that program is running?
I don't know if there's a standard constant/macro that defines it. It could be a good idea to check that