Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 408 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 408 Bytes

Various spinlock implementations from this article Spinlocks and Read-Write Locks by Lockless Inc.

I made some modification to make each implementation self contained and provide a benchmark script. The code relies on GCC's built-in functions for atomic memory access.

Note: Scalability is achieved by avoiding sharing and contention, not by scalable locks.