例如:InterlockedIncrement接口提供了两个扩展接口,分别是InterlockedIncrementAcquire和InterlockedIncrementRelease。
对于PC上的CPU(比如x86、x64)来说,三者没有区别,效果是等价的,但是对于特定的服务器CPU(比如intel 安腾),带后缀的InterlockedXXX接口速度更快。
具体见MSDN解释:
https://msdn.microsoft.com/en-us/library/ff540496.aspx
其他参考:
What's the difference between InterlockedCompareExchange Release() and Acquire()?
InterlockedIncrement vs InterlockedIncrementAcquire vs InterlockedIncrementNoFence
Acquire and release sound like bass fishing terms, but they also apply to memory models
https://blogs.msdn.microsoft.com/oldnewthing/20081003-00/?p=20663