This is clearly not an atomic operation.
这显然不是一个原子操作。
You seem to be totally misunderstanding what an atomic operation is.
您似乎完全误解一个原子操作是什么。
On Solaris SPARC, atomic operation for locking can be implemented as the following.
在SolarisSPARC上,加锁的原子操作可以如下实现。
Increments a specified variable and stores the result, as an atomic operation.
以原子操作的形式递增指定变量的值并存储结果。
Decrements a specified variable and stores the result, as an atomic operation.
以原子操作的形式递减指定变量的值并存储结果。
Decrements the specified variable and stores the result, as an atomic operation.
递减特定变数并将结果储存起来,成为不可部分完成的作业。
Adds two integers and replaces the first integer with the sum, 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.
也没有能在一个原子操作中锁住多个对象的方法。
These allow the atomic variable to be manipulated and then tested (all performed as one atomic operation).
这些例程允许对原子变量进行操纵和测试(作为一个原子操作来执行)。
Sets an object to a specified value and returns a reference to the original object, as an atomic operation.
将物件设定为指定值,然后传回原始物件的参考,成为不可部分完成的作业。
Semaphores allow synchronization of processes by testing and setting the integer value in a single atomic operation.
信号允许进程通过一个单一的原子操作来测试和设置那个整数的值,以此实现同步。
The function is not atomic: concurrent access from another thread, even through an atomic operation, is a data race.
不是原子的功能是:从另一个线程的并发访问,甚至可以通过一个原子操作,是数据争用。
The operations between steps 10 and 12 needs to be a single atomic operation, and SCA transaction intent can be specified to achieve that.
步骤10和12之间的操作需要成为单个原子操作,可以指定sca事务意图来实现。
The function call sigsuspend resolves this problem by resetting the signal mask and putting the process to sleep in a single atomic operation.
函数调用sigsuspend通过重置信号掩码并使进程休眠一个单一的原子操作来解决这一问题。
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提供了一些事务,通过这些事务可以将一系列操作(持久性消息接收、数据库更新,等等)划分为单个原子操作。
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是作为一个原子操作执行的。
An unlock operation involves an atomic machine operation.
解锁操作涉及一个原子机器指令。
But _set + + is not atomic, which means that it doesn't necessarily execute as a single, indivisible operation.
但是,_ set + +并不是原子操作,这意味着它不会以单个不可分割操作执行。
Consider the following atomic decrement operation.
请考虑下面的原子递减操作。
To generate unique book IDs, you use an AtomicInteger that ensures that the incrementation operation is atomic, and thus thread-safe.
要生成惟一的图书IDs,您将使用一个AtomicInteger,它能确保增量操作是原子级的(atomic),从而确保线程安全。
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操作来实现原子锁。
A message set is a group of messages that need to be treated together as one atomic unit during a reorder operation.
消息集合(Message set)是一组需要在重排操作期间作为一组原始单元处理的消息。
The code in Listing 2 implements a simple mutex, and the acquire() method is also an atomic read-modify-write operation.
清单2中的代码实现了简单的互斥,acquire()方法也是原子的读-修改-写操作。
In cases where the variable operation is non-atomic and can be accessed by multiple threads, don't rely on volatile synchronization facilities.
在那些非原子且可由多个线程访问的易变操作中,一定不能够依赖于volatile的同步机制。
This means that an updating operation towards a single object will either succeed or fail completely without any effect at all (atomic).
这意味着对某一对象的一个更新操作要么是成功的,要么是失败的(原子)。
The remarkable advantages of the above mentioned reactions are mild, neutral, simple operation, good yields and atomic economy.
以上所研究的反应都具有原料易得,反应条件温和,操作简便,产率较高,以及原子经济等诸多优点。
Objective: to define the best operation parameter when determining the chromium in cosmetics with graphite furnace atomic absorption spectrophotometric (GFAAS) method.
前言:目的:选择石墨炉原子吸收光谱法测定化妆品中铬的最佳测定条件。
The "atomic" algorithm performs decoding process using Fourier transformation only once and the integral Fourier transformation works without floating operation.
“原子”解码算法只通过一次傅氏变换即完成解码;而整数傅氏变换避免了傅氏变换中最耗时的浮点运算。
The "atomic" algorithm performs decoding process using Fourier transformation only once and the integral Fourier transformation works without floating operation.
“原子”解码算法只通过一次傅氏变换即完成解码;而整数傅氏变换避免了傅氏变换中最耗时的浮点运算。
应用推荐