3 ms·
To have one local count per thread would add memory overhead, I think? In his solution there are only two counters per object, local and shared. Any other thre
by kzrdude 5y ago
To have one local count per thread would add memory overhead, I think? In his solution there are only two counters per object, local and shared.
Any other thread can't know if it's the first time or not it's taking a reference to an object.