Re: epoll question

From: Davide Libenzi
Date: Thu May 27 2004 - 00:05:43 EST


On Wed, 26 May 2004, Vadim Lobanov wrote:

> I have a quick question about the behavior of epoll. My usage scenario is
> as follows:
>
> I add multiple fd's to the epoll set. Some of the fd's will have a lot of
> data coming in, while others will have noticeably less.
> I start to epoll for events, only letting it return one event at a time
>
> In this case, will the lesser-active fd's be starved out by the
> constantly-active fd's, or will they still be reliably seen?

Nope, even if you extract one fd at a time (???) the itam will be removed
from head and, if LT or ET and another event will come soon after, it will
be tail queued.


- Davide

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/