[Bug 209558] [request] Wakeup only one thread while kqueue events are available

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 22 18:45:25 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209558

Konstantin Belousov <kib at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
         Resolution|---                         |Works As Intended

--- Comment #4 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Jilles Tjoelker from comment #3)
Such program must not use single kqueue for several threads, if the desire is
to avoid the thundering herd issue.

More important is that socket events are level triggered, i.e. readiness of the
listen socket must be reported until the incoming connection is consumed.  So
the program behaviour is as intended.  Change of wakeup(9) to wakeup_one(9)
hides userspace bug, you just do not get all _required_ notifications since
less threads are runnable.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-threads mailing list