wenfh2020 / wenfh2020.github.io

make blog : github + jekyll
MIT License
4 stars 3 forks source link

[知乎回答] epoll的EPOLLEXCLUSIVE真的能防住惊群吗? #143

Open wenfh2020 opened 2 years ago

wenfh2020 commented 2 years ago

https://wenfh2020.com/2021/11/20/question-epollexclusive/

知乎问题:看网上的说法,在LT模式+EPOLLEXCLUSIVE的情况下,当有新事件发生的时候,线程被唤醒,之后会调用ep_scan_ready_list,主要做两个事情:调用传入的回调参数ep_send_events_proc把确实可读/写的事件从ready list挪到用户空间,如果是LT模式,那么会把事件留...