Liste des Groupes | Revenir à cl c++ |
On 4/19/2025 5:09 AM, Bonita Montero wrote:why broadcast inside of a locked mutex? all of those threads are going to fight, and/or go into the morph wrt the kernel Yawn.Am 19.04.2025 um 12:10 schrieb Chris M. Thomasson:Depends on the nature of the queue, and the nature of the wakes. A broadcast should be only when you _really_ need it!
>Uggg... A broadcast is a special case. Well, when would you use a broadcast vs a single signal? Ugggg...>
If you have more items in the queue than there are waiting threads
a broadcast is much more efficient. I suspect you have ADHD or a
similar mental disorder that leads to hasty conclusions
Les messages affichés proviennent d'usenet.