by api · 9y ago · 0 comments
This would be a bit like signal driven I/O. I'm thinking nobody uses that because it's single threaded and antiquated.
My feeling is that nobody uses signal driven I/O because signal handling is error prone and complicated. In fact, a very common pattern is to only set a flag in the signal handler, which is checked at defined points in the main program... not completely dissimilar from doing non-blocking calls at defined points in the main program.
There's also kqueue/kevent, which came before epoll and which is arguably superior.