• Re: signalling a condvar from inside vs. signalling a condvar von outsi

    From Scott Lurndal@21:1/5 to Bonita Montero on Sat Apr 19 14:55:15 2025
    Bonita Montero <[email protected]> writes:
    Am 18.04.2025 um 21:42 schrieb Chris M. Thomasson:
    On 4/17/2025 10:56 PM, Bonita Montero wrote:
    Am 17.04.2025 um 19:51 schrieb Chris M. Thomasson:

    The only thing I can say is that signalling, especially broadcasting,
    from the outside is ideal no matter what lib's you are using. ..

    With broadcasting it also doesn't matter if you broadcast from inside
    or outside.


    We have to agree to disagree? Fair enough?

    But there's one interesting fact to learn at last: broadcasting is more >efficient than unicasting.

    That fails on logical grounds, and is very dependent upon how
    many waiters exist at the time of the broadcast and how many
    processing elements are available.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Scott Lurndal@21:1/5 to Bonita Montero on Sat Apr 19 22:59:22 2025
    Bonita Montero <[email protected]> writes:
    Am 19.04.2025 um 16:55 schrieb Scott Lurndal:

    That fails on logical grounds, and is very dependent upon how
    many waiters exist at the time of the broadcast and how many
    processing elements are available.

    I do that only if the number of waiters is equal or smaller than
    the number of enqueued items.


    Doesn't matter. With broadcast, they're all scheduled and have
    you heard the term 'thundering herd'?

    N-1 of the waiters will attempt to acquire the mutex and fail;
    causing unnecessary coherency traffic and unnecessary context
    switches.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)