阅读背景:

使用Interlocked.Exchange更新引用和Int32

来源:互联网 

It is known that a reference takes 4 Bytes of memory in 32 bit processor and 8 Bytes - in 64 bit processor. So, processors guarantee that single reads from and writes to memory in increments of the natural word size of the machine will be carried out atomically. On the other hand there are 2 methods in Interlocked class:It is known that a reference takes 4 Bytes of m




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: