Condition variables allow threads to synchronize to a value of a Shared resource.
条件变量允许线程按照共享资源的一个值同步。
Condition variables provide a kind of notification system among threads (Nichols 79).
状态变量在线程中提供一种提示系统(Nichols 79)。
Now, the push method doesn't depend on any condition variables, so no extra waiting there.
push方法不依赖于任何条件变量,所以没有额外的等待。
And POSIX condition variables are the subject of my next article, where I'll show you exactly how to use them.
而POSIX条件变量将是我下一篇文章的主题,其中将说明如何正确使用条件变量。
UPD: with condition variables you can control the order of tasks execution within multithreading environment.
更新:有条件变量可以控制在多线程环境中任务的执行顺序。
The threading module does provide many synchronization primatives, including semaphores, condition variables, events, and locks.
线程模块提供了许多同步原语,包括信号量、条件变量、事件和锁。
The first thing of note in Listing 13 and Listing 14 is that there are two condition variables instead of the one that the blocking queue had.
对于清单13和清单14,要注意的第一点是,这个阻塞队列有两个条件变量而不是一个。
To that end, the threading module provides a number of synchronization primitives including locks, events, condition variables, and semaphores.
为了达到那个目的,线程模块提供了许多同步化的原生支持,包括:锁,事件,条件变量和信号灯。
If a statement raises a condition for which a handler exists, the values of the SQLSTATE and SQLCODE variables are available at the beginning of the handler execution.
如果某条语句发出一个存在处理程序的条件,那么SQLSTATE和SQLCODE变量的值就可以在开始执行处理程序时获得。
Content assist in the condition input area can be used to view a list of available variables.
条件输入区域中的内容辅助功能可以用于查看可用变量列表。
However, if the SQLCODE and SQLSTATE variables have been declared, they will contain the corresponding values for the condition, and you can check them.
然而,如果SQLCODE和SQLSTATE变量都已被声明,那么它们将为语句包含相应的值,并且可以检查这些值。
The variables specified in the condition must be in scope at whatever line you set the breakpoint on, otherwise the expression wouldn't make sense!
条件中指定的变量必须在设置了断点的行中,否则表达式就没有什么意义!
The first condition disqualifies volatile variables from being used as thread-safe counters.
第一个条件的限制使volatile变量不能用作线程安全计数器。
You can use content assist in the condition input area to view a list of available variables.
可以在条件输入区域中使用内容帮助(content assist)来查看可用变量列表。
The probability sensitivities between random variables are analyzed and the reliability index and the corresponding condition classes are obtained.
得到了多个随机变量的概率灵敏度、主要失效模式所对应的可靠度指标及其相应的状态等级。
In the paper, it provides the geometrical solution to extreme value of many variables function by geometric properties of objective function or constraint condition.
本文中,利用目标函数或约束条件的几何性质,提供了某些多元函数极值或最值问题的几何解法。
With the method the system condition described by dynamic variables and static parameters can be detected in real time.
基于分形的故障检测方法可以实现实时的检测系统的状态,包括系统的动态变量以及静态参数。
Task design variables include task input, task condition and task outcome varia-bles, and each variable still includes some design factors.
任务设计变量包括任务输入变量、任务条件变量和任务结果变量,每个变量又包含一些任务设计因素。
The condition for some variables that can form equivalent lagging effect is demonstrated.
论证一些变量间产生等效延迟效应的条件。
Through the change of variables, the original problem with inhomogeneous boundary condition is reduced to the boundary value problem of homogeneous boundary condition.
并通过变量代换,将原问题的非齐次边界条件转化为齐次边界条件的边值问题。
This allows the control condition to be comprised solely of local variables and therefore run much faster.
这使得控制条件只有局部变量参与运算,所以速度更快。
This paper deals with the system of linear equations with matrix variables and gives the sufficient and necessary condition of consistency.
本文讨论以矩阵为变量的线性方程组,给出相容性的充要条件。
Separation of variables is employed to solve the differential equation under the boundary condition of two ends of the girder being simply supported, and the solution of stress is…
在两端简支的边界条件下采用分离变量法求解偏微分方程,得到用级数表示的应力解,然后根据剪力滞系数的定义即可得到组合箱梁翼板的剪力滞系数。
A sufficient condition of the central limit theorem is given for strongly stationary NA random variables.
讨论了强平稳NA序列的随机指标中心极限定理,给出其成立的一个充分条件。
This paper puts forward a fuzzy random reliability formula named weighted average method, under the condition that random stress and fuzzy strength are all continuous variables.
对连续型随机应力和离散型模糊强度的模糊可靠度计算公式进行了研究,提出了当随机应力和模糊强度均为连续型时的加权平均法计算公式。
Objective: To study the mental health and social support condition of deaf-mute undergraduates, as well as the relation between the two variables.
目的:了解聋哑大学生心理健康、社会支持状况及其相互关系。
Then the input variables are unified, and weather factors including temperature and weather condition are quantified.
对输入负荷值进行伪数据处理、归一化处理,对温度、天气情况进行了量化处理。
Via reading system variables fixed point of axes can be determined in machine coordinates system: Via reading system variables PLC state bit is condition of criterion as NC macro-program goto;
通过读取系统变量可以灵活地确定每一个轴在机床坐标系中的固定点;通过读取系统变量将PLC状态位作为NC宏程序跳转的判断条件;
Shear band bifurcation analysis under plane strain condition is handled by two displacement variables, Instead of assuming the volumetric in-variance condition at the moment of bifurcation.
本文从两个位移变量入手分析了平面应变条件下的剪切带状分叉从而放弃了分叉时体积不变的约束。
Shear band bifurcation analysis under plane strain condition is handled by two displacement variables, Instead of assuming the volumetric in-variance condition at the moment of bifurcation.
本文从两个位移变量入手分析了平面应变条件下的剪切带状分叉从而放弃了分叉时体积不变的约束。
应用推荐