Liste des Groupes | Revenir à cl c++ |
Am 20.04.2025 um 07:49 schrieb Chris M. Thomasson:Like I said, only broadcast when you have to! Simple.
Barf! Are you daft? Only broadcast when you need to and well, try to strive to do it outside of the locked region, when you can. wow. Daft Punk?If I have just inserted N items in the queue and I have M waiting
threads and N >= M a broadcast is more efficient since you have
only one wakeup call and not not N.
This doesn't lead to more context-switches or coherency-traffic
as Scott mentioned.
I measured the number of context switches and the overall CPU
-time with Linux but you are only talking of things which are
not thought to the end.
Les messages affichés proviennent d'usenet.