lkml.org 
[lkml]   [2001]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] /dev/epoll update ...
Jonathan Lemon wrote:
>
> In article <local.mail.linux-kernel/3BB03C6A.7D1DD7B3@kegel.com> you write:
> >Right, and kqueue() can't even represent the 'level triggered' style --
> >or at least it isn't clear from the paper that it can!
>
> Yes it does - kqueue() is 'level-triggered' by default.

Apologies for the line noise. I've corrected
http://www.kegel.com/c10k.html to show kqueue as both edge- and level- triggered.
Further corrections welcome...

> As Christopher pointed out, any event can be converted into an
> edge-triggered style notification simply by setting EV_CLEAR. However,
> this is not usually a popular model from a programmer's point of view,
> as it increases the complexity of their app. (This is what I've seen, YMMV)

Agreed; the poll()-like semantics of level-triggering are particularly
forgiving.

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

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.033 / U:1.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site