"Edwin Eyan Moragas" <[EMAIL PROTECTED]> wrote: > the question is, which one is more useful when writing new servers? > kqueue or poll?
poll is more portable, while kqueue should be more performant (at least, that's why it was invented). If your app only needs to run on OpenBSD, NetBSD and FreeBSD, you're just fine with kqueue, otherwise use poll. Generally, I think it's better to use poll and sacrifice that unnoticable performance gain. -- Jonathan