Intel 64 and IA-32 | Atomic operations including acquire / release semantic

后端 未结 3 1973
滥情空心
滥情空心 2020-12-28 11:02

According to the Intel 64 and IA-32 Architectures Software Developer\'s Manual the LOCK Signal Prefix \"ensures that the processor has exclusive use of any shared memory whi

3条回答
  •  半阙折子戏
    2020-12-28 11:33

    No. From the IA32 manuals (Volume 3A, Chapter 8.2: Memory Ordering):

    Reads or writes cannot be reordered with I/O instructions, locked instructions, or serializing instructions.

    Therefore, a fence instruction is not needed with locked instructions.

提交回复
热议问题