mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* epoll question
@ 2004-05-27  4:53 Vadim Lobanov
  2004-05-27  5:04 ` Davide Libenzi
  0 siblings, 1 reply; 2+ messages in thread
From: Vadim Lobanov @ 2004-05-27  4:53 UTC (permalink / raw)
  To: linux-kernel

Hi,

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?

-Vadim Lobanov


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: epoll question
  2004-05-27  4:53 epoll question Vadim Lobanov
@ 2004-05-27  5:04 ` Davide Libenzi
  0 siblings, 0 replies; 2+ messages in thread
From: Davide Libenzi @ 2004-05-27  5:04 UTC (permalink / raw)
  To: Vadim Lobanov; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-27  5:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-27  4:53 epoll question Vadim Lobanov
2004-05-27  5:04 ` Davide Libenzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®