This only succeeds if another thread does not already have the lock, in which case the current thread is blocked.
只有在其他线程不拥有锁的情况下才会成功,如果其他线程拥有锁,当前线程就被阻塞。
Another special case of locking is the need to lock something where currently no database row exists.
锁定的另一个特例是需要锁定当前数据库行中不存在的项目。
In that case, the optimal pricing strategy is to charge as much in the beginning or to lock in customers with long-term contracts.
在这种情况下,最佳定价策略应该是:在初始阶段尽可能地抬高定价或是和顾客签订长期合约。
In this case, a logical lock (not a physical database lock) is used to flag that a row is in use for a long-term duration.
在本方案中,通过逻辑锁(而不是物理锁)来对在较长时间中使用的数据行进行标记。
While no one would ever directly use the idiom in Listing 1, this code is very similar to the case where the lock associated with a synchronized block can be proven to be a thread-local variable.
虽然没有人会直接使用清单1中的形式,但是与这个代码非常类似的情况是:可以证实与synchronized块关联的锁是一个线程本地变量。
Now you can repeatedly lock and unlock your computer's screensaver just by knocking on the side of the case. Is this faster or better in any way than setting up a custom key combination?
现在我们可以通过敲打屏幕边来重复加锁和解锁计算机屏保的过程。
In the case of this single threaded benchmark, it is quite safe for Hotspot to safely elide the lock.
在这个单线程化的基准测试中,Hotspot可以非常安全地将锁省略掉。
In this case an instance lock is acquired four times: three times for the append method and one time for the toString method, right after another.
在上面的例子中,锁的实例会被请求四次:前三次是执行append方法,最后一次是执行toString方法,紧接着前一个。
In both cases, the fault is reported (report function) and-in the case of the arms-the arms are mechanically locked into their current state (lock function).
两种情况下都会报告错误(report函数),对于手臂出错的情况,手臂被机械地锁定在当前状态(lock函数)。
In the case of a lock timeout event, a DBA can examine the corresponding db2pd output generated by the automatic invocation of the db2cos script.
在锁定超时事件中,DBA可以检查通过自动调用db 2cos脚本生成的db 2pd输出。
In case of a deadlock or lock timeout, this information can be used to present a history of SQL statements that may be involved in the deadlock or lock timeout occurrence.
如果发生死锁或锁定超时,这个信息可用于提供sql语句的历史信息,这些sql语句可能与死锁或锁定超时的发生有关。
A special case of the session locking pattern, mentioned above, is the need for a single lock on a set of tables.
如前面所提到的,会话锁定模式中的一个特例是需要对表集合施加单一的锁。
This means that to synchronize on a particular object, you simply call the synchronize method on that object; in this case, on the object held in the lock field on Drop.
这意味着,要同步某个特定的对象,您只需要对该对象调用同步方法;在本例中,对Drop上的lock字段中所保存的对象调用同步方法。
If this is the case, you can be sure that some users will lock up their account trying their old password beyond what the loginretries allows.
如果是这样,肯定会有一些用户多次尝试用旧密码登录,直到超过loginretries允许的次数,导致账户锁定。
In this case, the locks held at the time of the lock wait are.
在这里,发生锁等待时,被持有的锁是。
As in uppercase and lowercase. Changing case requires nothing more than pressing the Shift or Caps Lock key, and yet so few designers take advantage of this technique's potential.
改变字母大小写不过是按一下Shift或者CapsLock键的功夫,但很少有设计师好好利用了这一技巧的潜能。
That’s why some high-end resorts now offer to lock away guests’ computers, CrackBerry’s, cellphones and PDAs so it’s almost impossible to slip back into staying in 24-hour contact “just in case.”
这就是某些高端度假地提供锁住顾客电脑,黑莓,手机,PDA等服务的原因。溜回房间24小时呆在那里“以防万一”这总不太可能吧。
Leave your key with your neighbor in case you lock yourself out one day.
留一把钥匙给你的邻居,以防哪天你把自己锁在门外。
ABS can prevent wheel lock-up, reduce the total braking distance as far as possible, increase vehicle stability, and maintain steer ability even in case of all-out braking.
ABS可以防止车轮锁死,尽可能地减小路面制动,增加车辆的稳定性能,即使在制动状态下仍能转向。
So either I lock the GUI, until next message returns - this is the case now -, or choose a different approach.
所以要么我锁定GUI,直到下一条消息返回-这是现在的情况-,或选择一种不同的方法。
In this case, lock granularity is very important.
在这种情况下,锁的粒度是非常重要的。
Such as cell-phone appearance design, server machine case appearance design, outer wall clean robot appearance shape-designing, fingerprint lock appearance shape-designing, etc.
比如手机外观设计、务器机箱外观设计,外墙清洁机器人外观造型设计、纹锁外观造型设计等。
He found the thieves were forcing the lock of the jewel case.
他发现窃贼在撬珠宝盒上的锁。
The thieves forced the lock of the lady's jewel case.
盗贼撬开了那位太太的珠宝箱上的锁。
In my case, it was a tiny accident; when I tried to open the door to go to work, the key broke off in the lock.
我出的是一点儿小事,早上开门去上班时,我的钥匙断在锁里了。
Embedded systems are part of a larger system or product, as is the case of an anti-lock.
一些情况下,嵌入式系统是一个大的系统或产品的一部分,就象汽车上的防抱死装置。
Object data locking is generally per-object. Well, unless you don't have huge scalability issues, in which case you may have some external bigger lock (extreme case: one single global lock).
对象数据保护一般是一个对象拥有一个锁,假设你没有海量扩展性问题,不然你需要一些外部大一点的锁(极端的例子,一个对象一个全局锁)。
In the case that the pilot bore of the lock gate shaft was fully blocked by the rock mass, anchors have been combined with concrete to ensure the safety of subsequent side clearing and lining.
在闸门井导井被岩体完全封堵的情况下,为确保后期刷帮及衬砌安全,采用锚杆和砼结合对闸门井进行锁口。
In the case that the pilot bore of the lock gate shaft was fully blocked by the rock mass, anchors have been combined with concrete to ensure the safety of subsequent side clearing and lining.
在闸门井导井被岩体完全封堵的情况下,为确保后期刷帮及衬砌安全,采用锚杆和砼结合对闸门井进行锁口。
应用推荐