epoll_wait.2: Note that epoll_wait() round robins through the set of ready descriptors

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-06-22 10:34:33 +02:00
parent e3a60d1ce2
commit fc9294cb6f
1 changed files with 12 additions and 0 deletions

View File

@ -217,6 +217,18 @@ it will cause the
.BR epoll_wait ()
call to unblock.
.PP
If more than
.I maxevents
file descriptors are ready when
.BR epoll_wait ()
is called, then successive
.BR epoll_wait ()
calls will round robin through the set of ready file descriptors.
This behavior helps avoid starvation scenarios,
where a process fails to notice that additional file descriptors
are ready because it focuses on a set of file descriptors that
are already known to be ready.
.PP
Note that it is possible to call
.BR epoll_wait ()
on an