Skip to content

cyfdecyf/spinlock

Repository files navigation

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.

About

Different implementations of spinlock.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published