Threadwell

Recent Notes

  • DemetriSpanos

    Oct 06, 2026

    • archive
    • twitter
    • demetrispanos
  • NOTimothyLottes

    Oct 06, 2026

    • archive
    • twitter
    • notimothylottes
  • bonzajplc

    Oct 06, 2026

    • archive
    • twitter
    • bonzajplc
Home

❯

Archive

❯

Threads

❯

SebAaltonen

❯

This is how you write a good x64 spinlock: Use two stage construct.

❯

@SebAaltonen You can find many implementations here, including fair and scalable locks: https://github.com/concurrencykit/ck/blob/master/include/spinlock/fas.h

@SebAaltonen You can find many implementations here, including fair and scalable locks: https://github.com/concurrencykit/ck/blob/master/include/spinlock/fas.h

Properties5
typearchive
sourcetwitter
date2019-05-06
tagsarchive, twitter, sebaaltonen
description@SebAaltonen You can find many implementations here, including fair and scalable locks: https://github.com/concurrencykit/ck/blob/master/include/spinlock/fas.h

May 06, 20191 min read

  • archive
  • twitter
  • sebaaltonen

Source

  • URL: https://x.com/0xF390/status/1125428859367776256
  • Author: Samy Al Bahra (@0xF390)
  • Posted: 2019-05-06 15:55:24

Branch

1/ @0xF390

@SebAaltonen

You can find many implementations here, including fair and scalable locks: https://github.com/concurrencykit/ck/blob/master/include/spinlock/fas.h

Related

  • Spine: 2019-05-05-this-is-how-you-write-a-good-x64-spinlock-use-two

Graph View

  • Source
  • Branch
  • Related

Backlinks

  • This is how you write a good x64 spinlock: Use two stage construct.

Created with Quartz v5.0.0 © 2026

  • GitHub