What is the purpose of epoll's edge triggered option?

前端 未结 2 1140
粉色の甜心
粉色の甜心 2020-12-12 09:37

From epoll\'s man page:

epoll is a variant of poll(2) that can be used either as an edge-triggered
or a level-triggered interface

When woul

2条回答
  •  猫巷女王i
    2020-12-12 10:03

    In my experiments, ET doesn't guarantee that only one thread wakes up, although it often wakes up only one. The EPOLLONESHOT flag is for this purpose.

提交回复
热议问题