Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.06 KB

synchronization.md

File metadata and controls

24 lines (16 loc) · 1.06 KB

Synchronization

TODO understand better and make multithreaded examples that fail.

TODO Other sync instructions:

  • MFENCE
  • LFENCE
  • SFENCE

Likely should be done with inline assembly. TODO: is it possible to test those things here (see failures) e.g. under the Linux kernel, or do we need to go bare metal?

Lock prefix

Can be used with: ADD, ADC, AND, BTC, BTR, BTS, CMPXCHG, CMPXCH8B, DEC, INC, NEG, NOT, OR, SBB, SUB, XOR, XADD, and XCHG