Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小白求问,为什么这个是ET模式 #152

Open
velonica0 opened this issue Jun 28, 2023 · 1 comment
Open

小白求问,为什么这个是ET模式 #152

velonica0 opened this issue Jun 28, 2023 · 1 comment

Comments

@velonica0
Copy link

velonica0 commented Jun 28, 2023

ET模式不是epoll_wait以后要把所有的全部读完吗,为什么这个程序直接放入到线程池不管了也算是ET。哪个地方保证剩下的所有都读完了呢

@dajinlou
Copy link

ET模式不一定要全部读完,它和LT不同的是,LT是持续通知,而ET是通知一次,也就是说,不管它读完读不完,epoll_wait都不回立即返回,而LT和它不同,它允许可以读取不完,然后epoll_wait会再次触发,直到其读完。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants