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

[email protected]
Newsgroups gmane.os.freebsd.devel.threading
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209558

Konstantin Belousov <[email protected]> changed:

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

--- Comment #4 from Konstantin Belousov <[email protected]> ---
(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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.