This is clearly not an atomic operation.
这显然不是一个原子操作。
On Solaris SPARC, atomic operation for locking can be implemented as the following.
在SolarisSPARC上,加锁的原子操作可以如下实现。
These allow the atomic variable to be manipulated and then tested (all performed as one atomic operation).
这些例程允许对原子变量进行操纵和测试(作为一个原子操作来执行)。
Semaphores allow synchronization of processes by testing and setting the integer value in a single atomic operation.
信号允许进程通过一个单一的原子操作来测试和设置那个整数的值,以此实现同步。
J2EE provides transactions, by which a sequence of operations (persistent message receives, database updates, and so on) can be grouped into a single atomic operation.
J2EE提供了一些事务,通过这些事务可以将一系列操作(持久性消息接收、数据库更新,等等)划分为单个原子操作。
Increments a specified variable and stores the result, as an atomic operation.
以原子操作的形式递增指定变量的值并存储结果。
Decrements a specified variable and stores the result, as an atomic operation.
以原子操作的形式递减指定变量的值并存储结果。
Adds two 32-bit integers and replaces the first integer with the sum, as an atomic operation.
以原子操作的形式,添加两个32位整数并用两者的和替换第一个整数。
There are no constructs for simultaneously locking multiple objects in a single atomic operation.
也没有能在一个原子操作中锁住多个对象的方法。
The real value here is that the getWhatImReading method is executed without synchronization of any kind, whereas the setWhatImReading is executed as an atomic operation.
这里真正的价值在于,getWhatImReading方法未经任何形式的同步便被执行,而setWhatImReading是作为一个原子操作执行的。
The real value here is that the getWhatImReading method is executed without synchronization of any kind, whereas the setWhatImReading is executed as an atomic operation.
这里真正的价值在于,getWhatImReading方法未经任何形式的同步便被执行,而setWhatImReading是作为一个原子操作执行的。
应用推荐