3 ms·
First, the article starts talking about the accept() and thundering herd but the example shows use of the select(). Second, accept() goes over a queue of the e
by alexginzburg 10y ago
First, the article starts talking about the accept() and thundering herd but the example shows use of the select().
Second, accept() goes over a queue of the established connections created by a listen() call
select() and accept() are meant for different things. selec/poll/epoll/kqueue work with a list of file descriptors to detect I/O, accept works with a socket.