4 ms·
With that many threads the cost of spinning on the lock while the owner is sleeping is more apparent. I don't think that's very representative of real world sce
by eloff 12y ago
With that many threads the cost of spinning on the lock while the owner is sleeping is more apparent. I don't think that's very representative of real world scenarios, but it's useful for evaluating the "spin" cost of the lock (some algorithms just pin the CPU at 100% when spinning, which is horrible from a heat heat/power perspective.)