Re:The case of the critical section that let multiple thread...
by Wumpnot on Sunday March 23, 2025 @10:35AM
(#43453208)
A few years ago I compared them, it was not a microbenchmark, but a real application. There were a few million(almost entirely uncontended) exclusive locks being taken on startup, SRWLock was consistently faster, though the difference was not large.
Re:The case of the critical section that let multiple thread...
by tialaramex on Sunday March 23, 2025 @10:45AM
(#43453255)
Thanks, I wonder what that's all about.
In terms of size, the pointer is bigger than you'd want - it's no pthread_mutex or the analogous Windows data structure where it's a multi cache line disaster of a data structure - but it's clearly worse than a futex or WaitOnAddress solution.