Push the tiny lever on the lock and let the door lock itself.
推锁上的小控制杆,让门自动锁上。
The lock escalations, lock timeouts and deadlocks will indicate some potential problems in your system or application.
锁升级、锁超时和死锁将表明系统或应用程序中存在某些潜在问题。
Some file systems support network clients obtaining an exclusive write lock on a file and remove the lock if the client crashes.
一些文件系统支持网络客户端获取对文件的排它写锁定,以及当客户端死机时移交锁定。
If spinning succeeded on that same lock object in the recent history and the thread holding the lock is running, then spinning is likely to succeed again.
如果在同一个锁对象上,自旋刚刚成功过,并且持有锁的线程正在运行中,那么自旋很有可能再次成功。
For example, assume one virtual processor is holding a lock and does not have enough cycles to release that lock.
例如,假定一个虚拟处理器持有一个锁,并且它没有足够的周期来释放这个锁。
With adaptive spinning the duration of the spin is not fixed anymore, but determined by a policy based on previous spin attempts on the same lock and the state of the lock owner.
自适应意味着自旋的时间不再固定了,而是取决于一个基于前一次在同一个锁上的自旋时间以及锁的拥有者的状态。
Priority-based FIFO behavior — as in the earlier synchronization example where the highest-priority thread is chosen to execute next — also applies to the queues of lock contenders and lock waiters.
基于优先级的FIFO行为——在前面的同步示例中,将接着执行具有最高优先级的线程——也适用于锁争用者和锁等待者的队列。
When a table holds an IX lock, the lock owner and concurrent applications can read and update data in that table.
当表持有IX锁时,锁拥有者和并发应用程序可以读和更新该表中的数据。
When multiple threads ask for the same lock at the same time, one wins and acquires the lock, and the others block.
在多个线程同时请求同一个锁时,会有一个线程获胜并得到锁,而其他线程被阻塞。
The readers are protected by a lock, but the lock is a standard one, and keys can be bought on the Internet: besides, the keys circulate among election officials.
识读卡由一个锁保护,但问题是这个锁是一把标准锁,钥匙能在网上得到;除此以外,这些钥匙还在这些选举官员间串换。
For example, a lock snapshot captures and returns database lock information.
例如,锁快照捕获并返回数据库锁信息。
This is because the new X row lock and the is table lock are not compatible.
这是因为新的x行锁定和is表锁定是不兼容的。
The lock snapshot includes database summary information, application information and, of course, the lock information.
锁快照包含数据库摘要信息、应用程序信息,当然还有锁信息。
Since locks are used for interthread communication, it makes sense that taking out a lock would start a critical region and that releasing the lock would end the critical region.
既然锁定用于线程间通信,那么取消锁定会开启临界区,而释放锁定会结束临界区,这是行得通的。
The system detects that the P3 thread is holding a lock required by the P1 thread and elevates its priority to P1 until the lock is released.
如果系统检测到P 3线程正在持有一个P 1线程需要的锁,则会把P 3线程的优先级置为P1,直到它释放了锁。
These statistics include how the lock was acquired, the total amount of time the lock was held, and the average amount of time that the lock was held.
这些统计数据包括锁被请求的方式、锁被持有的总时间以及锁被持有的平均时间。
When two threads contend for a lock, one of them will get the lock and the other will have to block until the lock is available.
当两个线程竞争同一个锁时,其中一个会得到锁,另一个不得不阻塞,直到锁可用。
Application 2 can establish an IX lock on the table and an X row lock, because the table lock IX is compatible to the IN table lock from A1.
应用程序2可以在表上建立一个IX锁定和一个x行锁定,因为表锁定ix兼容a1的in表锁定。
The detective on the phone explained how someone had sprayed a canister of Freon into the dead-bolt lock and then tapped the lock with a cold chisel to shatter the cylinder.
侦探在电话里向我演示了某人是如何往弹子门锁里喷罐装气态氟利昂,然后用小凿子把锁头敲碎。
Figure 3. Relative throughput for synchronization, barging Lock, and fair Lock, with four CPUs
使用4 个CPU 时的同步、协商锁和公平锁的相对吞吐率
Lock - Number of locks held, deadlocks and lock waits escalations.
LOCK——保存的锁、死锁和锁等待升级的数目。
You can use AccessIntent to resolve the lock type and pass this lock type to the stored procedure, which then determines the correct SELECT statement syntax based on the lock type.
用户可以使用AccessIntent来解决锁定类型并将该死锁类型传送给存储过程,然后以锁定类型为基础,确定适当的SELECT语句语法。
Because the acquired lock does not persist across transaction boundaries, the import utility loses its IX table lock and must request another lock after each commit.
因为获得的锁不会跨事务边界存在,所以import工具将失去它的IX表锁,并且必须在每次提交之后请求另一个锁。
The load utility accomplishes this by requesting a super exclusive (Z) lock on the table and retaining this lock for the duration of the load operation (see Listing 4).
load工具实现这一点的方法是,请求目标表上的一个超级排他(Z)锁,并在加载操作期间一直持有这个锁(参阅清单4)。
Lock modes and lock object types are defined in the sqlmon.h include file, which will help you to decipher the numerical equivalents that the table function returns.
锁模式和锁对象类型都定义在sqlmon . h包含文件中,该文件将有助于破解表函数返回的数值当量(numerical equivalent)。
Experts recommend that users should spend around 10 per cent of their bike's value on a decent lock - ideally two - and always lock it to a solid object through the frame.
专家们推荐使用者至少花费车价的百分之十用于购买合适的锁——当然两个更为理想——并且始终把车架和某坚固物体一起锁上。
This causes t1 to request a lock on MCL2 and wait until that lock can be obtained.
这造成t1请求mcl2上的锁,并一直等候到可以得到锁为止。
For each bucket, there's a lock, and that lock is acquired when traversing a bucket either for read or write.
每个bucket都有一个锁,而且该锁在遍历bucket(为了读或写)的时候被获取。
Dbrun.snap - This script displays the total lock list, average lock list in use and average lock list utilization.
perl locklist . pl dbrun . snap——该脚本显示总的锁列表、使用中的平均锁列表以及平均锁列表利用率。
The ReentrantLock class, which implements Lock, has the same concurrency and memory semantics as synchronized, but also adds features like lock polling, timed lock waits, and interruptible lock waits.
ReentrantLock类实现了Lock ,它拥有与 synchronized相同的并发性和内存语义,但是添加了类似锁投票、定时锁等候和可中断锁等候的一些特性。
应用推荐