支持了解方法Interlocked.CompareExchange [英] support to understand method Interlocked.CompareExchange
本文介绍了支持了解方法Interlocked.CompareExchange的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要支持来了解Interlocked.CompareExchange .......方法的工作原理.
I need support to understand about the working of a method Interlocked.CompareExchange.......
推荐答案
这只是原子的直接翻译汇编指令LOCK CMPXCHG.请在Wiki上查看详细说明: http://en.wikipedia.org/wiki/Compare-and -swap [ ^ ]
祝你好运!
It is simply a direct translation of the atomic assembly instruction LOCK CMPXCHG. Have a look here on wiki for an extensive explanation:http://en.wikipedia.org/wiki/Compare-and-swap[^]
Good luck!
这篇关于支持了解方法Interlocked.CompareExchange的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文