How thread-friendly is kevent?
Jordan Hubbard
jkh at mail.turbofuzz.com
Mon Nov 10 07:16:44 UTC 2014
> On Nov 9, 2014, at 11:13 PM, John-Mark Gurney <jmg at funkthat.com> wrote:
>
> The most common use of this is for socket IO (there isn't much else
> except maybe vnodes) that you can wait on that you'd have such a highly
> multithreaded program... And if you do, it would make more sense to
> use the recent RSS work that Adrian has been working on, and have one
> kq per CPU w/ the proper cpu binding for that set of sockets...
Or just use libdispatch, which feeds a pool of worker threads from a single event-handling source that is kind to queues. :)
- Jordan
More information about the freebsd-hackers
mailing list