3 ms·
Sort of. if (threads) lock(...); should still be pretty quite a bit faster than fine grained locks everywhere, since your atomics aren't broadcas
by ori_b 10y ago
Sort of.
if (threads)
lock(...);
should still be pretty quite a bit faster than fine grained locks everywhere, since your atomics aren't broadcasting and shooting down cache lines everywhere.