A background thread might read this sensor every few seconds and update a volatile variable containing the current temperature.
一个后台线程可能会每隔几秒读取一次该传感器,并更新包含当前文档的volatile变量。
The idea here is that the volatile variable initialized acts as a guard to indicate that a set of other operations have completed.
这里的思想是使用易失性变量initialized 担任守卫来表明一套别的操作已经完成了。
Happens-before orderings across threads are only created by synchronizing on a common lock or accessing a common volatile variable.
只有在通用锁上执行同步或访问一个通用的可变变量时,才能创建跨线程的Happens - before排序。
The primary motivation for using volatile variables is simplicity: In some situations, using a volatile variable is just simpler than using the corresponding locking.
使用volatile变量的主要原因是其简易性:在某些情形下,使用 volatile变量要比使用相应的锁简单得多。
The atomic variable classes can be thought of as a generalization of volatile variables, extending the concept of volatile variables to support atomic conditional compare-and-set updates.
原子变量类可以认为是volatile变量的泛化,它扩展了可变变量的概念,来支持原子条件的比较并设置更新。
In a thread-safe program, only one writing thread can modify the variable; other threads can read the up-to-date value by declaring the variable volatile.
在一个线程安全的程序中,只有一个写线程能够修改这个变量;而其他的线程则可以读取volatile声明变量的最新值。
In short, identifying a variable with the volatile keyword means that the variable's value will be modified by different threads.
简言之,使用volatile关键字识别一个变量,意味着这个变量的值会被不同的线程修改。
In cases where the variable operation is non-atomic and can be accessed by multiple threads, don't rely on volatile synchronization facilities.
在那些非原子且可由多个线程访问的易变操作中,一定不能够依赖于volatile的同步机制。
If a variable is declared as volatile, it means that it is expected to be modified by multiple threads.
如果一个变量被声明为volatile,这意味着它预计会由多个线程修改。
The old semantics of volatile only made promises about the visibility of the variable being read or written, and no promises about other variables.
volatile的旧语义只承诺正在读和写的变量的可见性,而不承诺其他的变量。
Note that this operation cannot be achieved reliably by making the value instance variable volatile.
注意,通过使值实例变量成为可变变量并不能可靠地完成这项操作。
The local variable space is used as a general storage area for the function, and the register save area is used to save the values of non-volatile registers that the function USES.
本地变量空间用作该函数的通用存储空间,寄存器保存区用于保存函数所使用的非可变寄存器的值。
Chemical constituents of volatile oil QSRR model variated screening were established on the base of the variate variable. The correlation coefficients were move than 0.90.
在变量筛选的基础上建立了多个挥发油化学成分QSRR模型,相关系数均在0.90以上。
As in other aspects of life, we seem to think that attaching a number to a volatile or uncontrollable variable brings it under control.
在生活的其他方面,我们常常会将数据和不稳定或无法控制的变量绑在一起来使它稳定。
Chemical constituents of volatile oil QSRR model variated screening were established on the base of the variate variable.
在变量筛选的基础上建立了多个挥发油化学成分qsrr模型,相关系数均在0。
Chemical constituents of volatile oil QSRR model variated screening were established on the base of the variate variable.
在变量筛选的基础上建立了多个挥发油化学成分qsrr模型,相关系数均在0。
应用推荐