比较并交换(CAS)。
Here's an example of implementing compare and swap for the Intel architecture.
这里是为Intel体系结构实现比较与交换的一个示例。
Equivalent instructions are available on other platforms-for example, the Motorola MC68030 processor has an instruction named compare and swap (CAS) that has similar semantics.
在其他平台上有等效的指令,例如Motorola MC 68030处理器的compare and swap (CAS)指令有相似的语义。
On Linux x86, you can use a compare and swap operation to implement atomic locking. For example, a sample implementation for compare and swap on Linux x86 can be the following.
在Linuxx86上,您可以使用一个compare和swap操作来实现原子锁。
Under the hood, operations on atomic variables get turned into the hardware primitives that the platform provides for concurrent access, such as compare-and-swap.
在表面之下,原子变量的操作会变为平台提供的用于并发访问的硬件原语,比如比较并交换。
On Intel processors, compare-and-swap is implemented by the CMPXCHG family of instructions.
在Intel处理器中,比较并交换通过指令的cmpxchg系列实现。
The most common approach taken by current processors, including Intel and Sparc processors, is to implement a primitive called compare-and-swap, or CAS.
现在的处理器(包括Intel和Sparc处理器)使用的最通用的方法是实现名为比较并转换或CAS的原语。
You can compare notes on things you found difficult and swap information about the materials you have useful.
你们可以对自己感到困难的问题交换意见,也可以互相交换各自找到的有用材料的信息。
You can compare notes on things you found difficult and swap information about the materials you have useful.
你们可以对自己感到困难的问题交换意见,也可以互相交换各自找到的有用材料的信息。
应用推荐