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).

 

posted @ 2019-05-09 01:30  papering  阅读(157)  评论(0编辑  收藏  举报