Preemption is GC for memory reordering (2019)

(pvk.ca)

22 points | by mpweiher 3 days ago ago

5 comments

  • gblargg an hour ago

    If I understand this correctly, it basically has the second thread wait until the first one experiences a hardware interrupt, which implicitly synchronizes memory. This avoids the first thread from needing any synchronization primitives that would slow it down.

  • Jweb_Guru 2 hours ago

    Oh boy this is a cool blog post. Encourage everyone to read it.

    • senderista 2 hours ago

      There are many more cool posts on that blog.

  • 7e22v837278gb1p 4 hours ago

    "GC"?

    • mwkaufma 3 hours ago

      Garbage collection. It's in the leading paragraph of the article so I can see why it's easy to miss.