search for: aposed

Displaying 2 results from an estimated 2 matches for "aposed".

Did you mean: posed
2023 Jul 05
1
Libnbd asynchronous API with epoll
...nous (aio_*) functions with Tokio <https://docs.rs/tokio/latest/tokio/>, the most used asynchronous runtime in Rust. However, in its eventloop, Tokio uses epoll(7) instead of poll(2) (which is used internally in Libnbd). The difference is that poll(2) uses level-triggered notifications as aposed to epoll(7) which uses edge-triggered notifications. In short, the difference is that if one would wait for a file discriptor to be readable, epoll would block until the file descriptor changes from not readable to readable. So if the file descriptor is already readable then epoll would block u...
2023 Jul 06
1
Libnbd asynchronous API with epoll
...ctions with Tokio > <https://docs.rs/tokio/latest/tokio/>, the most used asynchronous runtime > in Rust. However, in its eventloop, Tokio uses epoll(7) instead of poll(2) > (which is used internally in Libnbd). The difference is that poll(2) uses > level-triggered notifications as aposed to epoll(7) which uses > edge-triggered notifications. > According to epoll(7) section "Level-triggered and edge-triggered" says: By contrast, when used as a level-triggered interface (the default, when EPOLLET is not specified), epoll is simply a faster poll(2)...