I was wondering whether there is - at least under Linux - a system call that watches a set of file descriptors and first "serves" the first file descriptor that got ready for operation.
I have been working with select
and I do not expect that select
enforces a kind of FirstComeFirstServed policy on the descriptors that watches, because its implementation should be a slight variation on polling.
Maybe I am asking for an event-driven handler, but I do not know anything about epoll
beyond its mere existence.
Thanks