9 ms·
The writeup suggests this implementation is optimized for the not-locked case: > uses an optimistic CAS (compare and swap) immediately, so that locking happens
by ataylor284_ 2y ago
The writeup suggests this implementation is optimized for the not-locked case:
> uses an optimistic CAS (compare and swap) immediately, so that locking happens quickly when there's no contention