The problem is now the wait_for_fds() example function: it will call something like select(), poll() or the more modern epoll() and kqueue().
小结:
1、线程与惊群效应
Serializing accept(), AKA Thundering Herd, AKA the Zeeg Problem — uWSGI 2.0 documentation
https://uwsgi-docs.readthedocs.io/en/latest/articles/SerializingAccept.html#select-poll-kqueue-epoll
顺序
Dozens (or hundreds) of threads waiting for the same set of file descriptors bring us back to a thundering herd problem (unless all of your threads are constantly used).