Let the critical section of code complete its job.
使代码的关键部分完成其工作。
Atomic means that the critical section is contained within the API function.
原子意味着临界段被包含在api函数中。
Make sure this copying happens inside the critical section by holding a spinlock.
确保这个拷贝是在一个具有自旋锁的临界区中发生的。
A critical section is a portion of code that is protected against multiple access.
一个临界段是一段不允许多路访问的受保护的代码。
To combat the issue of race conditions, the concept of a critical section was created.
临界段概念是为解决竞态条件问题而产生的。
Data exchange among threads was realized under the protection of critical section.
系统线程间的数据交换在临界区保护模式下实现。
Write a standard lock plus "double check" to create a critical section around a variable access.
写一个标准的lock,在访问变量的前后创建临界区,要有“双重检查”。
We must protect each object instance against multiple use with a critical section per object.
我们必须保护每个对象实例来确保多重使用不出问题,保证方法是用每对象关键节。
Based on the stress analysis on the critical section, this paper presents a simple calculation method.
基于对最不利截面的应力分析,提出了一种简便、快速的悬臂长度计算方法。
For a method that enters a critical section, validate that the method does not return before it is released.
对于进入关键部分的方法,验证该方法未在释放前返回。
Before entering the critical section, the lock method of the ReentrantLock object is invoked to try and obtain the lock.
在进入关键部分之前,调用ReentrantLock对象的lock方法,尝试并获得锁。
A critical section is an object used to make sure, that some part of the code is executed only by one thread at a time.
临界区用来确保代码的某些部分同一时间只能由一个线程执行。
Then net effect is that we will end up with a longer critical section which may result in other threads stalling and reduced throughput.
这种做法带来的真正效果是我们获得了一个更长的临界区,它可能导致其他线程受到拖延从而降低吞吐量。
Interrupt disabling is one of the key mechanisms used to ensure that a sequence of kernel statements is treated as a critical section.
确保一组内核语句被当作一个临界区域处理的主要机制之一就是中断禁止。
This allows us to minimize the amount of work in the critical section which should bias the measurement towards the cost of synchronization.
这样我们可以将临界区内的工作最小化,进而重点测量同步的开销。
The bending normal stress amplitudes of the nodes in the critical section near crankshaft fillet were obtained by modal expanded computation.
最后通过模态扩展计算得到圆角危险截面圆弧上各点在疲劳试验过程中的弯曲正应力幅值。
Minimizing time spent in the critical section allows for greater concurrency because it reduces the time other threads must wait to gain the lock.
减少在临界域中耗费的时间能带来更多的并发性,因为这减少了其他线程等待锁的时间。
If the underlying function is in the middle of a critical section and a signal is generated and handled, this can cause the function to be non-reentrant.
如果底层的函数处于关键部分,并且生成并处理信号,那么这可能会导致函数不可重入。
Critical sections operate on the principle of mutual exclusion (when a thread is within a critical section, all other threads are excluded from entering).
临界段操作时坚持互斥锁(mutual exclusion)原则(当一个线程处于临界段中时,其他所有线程都不能进入临界段)。
Also, the administrator can check for dead applications or those that are reporting they are in a critical section of the program, like long updates to reporting.
同样,管理员可以检查无响应的应用程序,或者那些报告说正处于运行程序临界段,如长时间报表更新。
Sample pretreatment is the critical section in residue determination, it's the key indicator to measure the advancement and practicability of a new determination method.
现在我国很多科研院所和检测机构的仪器设备水平和国外相比差异不大,差距是在样品的提取、净化等前处理上。
When the thread that has the lock leaves the critical section, the suspended thread needs to be woken up. The thread will need to be re-scheduling and context switched back into the CPU.
当拥有锁的线程离开临界区的时候,挂起的线程需要被重新唤醒,然后重新被调用,并交换上下文,回到CPU调度中。
When the thread that has the lock leaves the critical section, the suspended thread needs to be woken up. The thread will need to be re-scheduling and context switched back into the CPU.
当拥有锁的线程离开临界区的时候,挂起的线程需要被重新唤醒,然后重新被调用,并交换上下文,回到CPU调度中。
应用推荐