1 To achieve high-performance servers, I/O multiplexers like epoll or kqueue are used with non-blocking I/O calls.
“You use some I/O multiplexer like epoll or kqueue. You do non-blocking I/O calls. You don't share memory too much between your TCP connections and then you spawn a bunch of threads and you probably do some sort of pre-forking sort of thing so that you can accept connections on each of these threads.”