A thread can simultaneously hold more than one lock, and these locks might have been acquired in a certain order.
一个线程可以同时持有多个锁,并且可能已经按某种顺序获得了这些锁。
Turn the lock the correct way with the wrench, putting slight pressure on it. Hold the wrench in place.
握住扳手上最合适的部位,轻微地施力,将锁朝着正确的方向转动。
The transaction that a locked resource is associated with is said to hold or own the lock.
我们称与被锁定的资源关联的事务持有或拥有该锁。
If you are going to hold the lock on the collection during an entire iteration, then other threads may be stalled waiting for the collection lock for a long time.
如果您要在整个迭代期间都保持对集合的锁,那么其他的线程就会在锁外停留很长的一段时间,等待解锁。
The race conditions illustrated in Listing 1 often make it necessary to hold the single collection lock for much longer than it takes to execute a single operation.
清单1中演示的争用条件常常使得对单个集合的锁在单个操作执行完毕之后还必须继续保持一段较长的时间。
64 bytes are required to hold a lock on an object that has no other locks held on it.
需要64个字节来持有某个对象上的锁,在这个对象上,没有持有其它锁。
There is an interaction between notification and locking — to wait or notify on an object, you must hold the lock for that object.
通知与锁定之间有一个交互——为了在对象上wait或notify,您必须持有该对象的锁。
For example, if you are writing a Web server, and all your cached pages are stored in a HashMap, every request will want to acquire and hold the lock on that map, and it will become a bottleneck.
例如,如果您正在编写一个Web服务器,而且所有的高速缓存的页都存储在hashmap中,那么每个请求都将需要获得并占用那个map上的锁,这就将成为一个瓶颈。
Specifying True causes the select for update extension to be used whenever the bean is loaded from the database and hold that lock for the duration of the transaction.
选择True会使只要从数据库加载bean,就会使用selectfor update扩展,并在事务持续过程中维持锁定。
And you should never unlock a mutex that you don't hold a lock for (otherwise, the pthread_mutex_unlock call will fail with a non-zero EPERM return value).
并且绝对不要对您未保持锁的互斥对象进行解锁操作(否则,pthread _ mutex_unlock调用将失败并带一个非零的eperm返回值)。
Even when run with a single thread, the collapsed version was some 30 percent faster: it is much faster to acquire a lock that you already hold than one that nobody holds.
即使只运行一个线程,崩溃版的速度也要快约30%:获取您已占用的锁比获取无人占用的锁要快得多。
These classes guarantee that an RT thread, which could be blocked by GC while performing a wait-free operation, won't hold a lock that an NHRT requires in performing a wait-free operation.
RT线程在执行无等待操作时可能被GC阻塞,上述类保证了 RT 线程在执行无等待操作时不会持有NHRT 所需的锁。
When the function returns, the caller will be woken up (obviously), and the caller will also now hold the lock.
函数返回时,将唤醒调用者(显然)并且调用者还将保留该锁。
In systems with a large number of locks (and the kernel is becoming such a system), it is not unusual for code to need to hold more than one lock at once.
在一个存在大量锁的系统中(内核就是这样一个系统),通常在代码中需要一次性控制多个锁。
Every night they will hold the old lock ceremony.
他们每天晚上都会进行古老的锁门仪式。
There are two requirements, first mastering the swing, and second being able to lock out and hold a kettlebell overhead, as in the get-up.
有两点需求,首先要掌握壶铃摆,第二是要能做到在壶铃向上运动时将其锁定至过顶位置。
Hold stem (27) on wrench flats and remove nut (51), lock washer (46), diaphragm plate (60) and diaphragm.
在扳手的平面上握住阀杆(27)并拆卸螺母(51),锁紧垫圈(46),隔膜板(60)和隔膜。
You can see how much the mirrors want to move due to gravitational waves (or anything else) by watching how much power is needed to hold them in lock.
你可以通过观察保持镜子锁定所需的能量来确定引力波想要把反射镜移动多少。
You can depart in AP or Stability mode prior to GPS lock, but you forfeit the GPS-driven functions such as Position Hold and Return to Home.
您可以在AP或之前GPS锁定稳定模式离开,但是你放弃了GPS驱动的功能,如位置保存并返回到首页。
Only one user at a time may hold a lock on a particular file or folder.
一次只能有一个用户持有对特定文件或文件夹的锁定。
Long lock hold times also keep the current processor from scheduling, meaning that a higher priority process-which really should be able to get the CPU-may have to wait.
对锁较长时间的控制也会使处理器违反计划调度,也就是说,这会导致一个拥有较高优先级的进程不得不等待CPU。
That is, do not hold a lock if the owning thread might make a call that triggers a garbage collection.
也就是说,如果拥有的线程可能进行触发垃圾回收的调用,请不要持有锁。
Early interest rate theory of Adam Smith, William Pitt and John Lock hold that interest rate is determined by the supply and demand of the credit capital.
斯密、威廉·配第和约翰·洛克等的早期利率理论认为,利率是由借贷资本的供求所决定的。
I could not help wondering that my old friend, the pound-lock, and that of the very simplest and most rural kind, should hold its place there.
我不禁觉得奇怪;这座我所熟悉的贮水水闸,这种极简单,极土气的贮水水闸,今天居然还保留著。
Do not hold a lock while your profiler calls into a CLR function that can trigger a garbage collection.
当探查器调入可能触发垃圾回收的clr函数时,不要持有锁。
An object's intrinsic lock and its intrinsic condition queue are related: in order to call any of the condition queue methods on object X, you must hold the lock on X .
一个对象的固有锁和它的固有条件队列是相关的,为了调用对象X内条件队列的方法,你必须获得对象X的锁。这是因为等待状态条件的机制和保证状态连续性的机制是紧密的结合在一起的。
An object's intrinsic lock and its intrinsic condition queue are related: in order to call any of the condition queue methods on object X, you must hold the lock on X .
一个对象的固有锁和它的固有条件队列是相关的,为了调用对象X内条件队列的方法,你必须获得对象X的锁。这是因为等待状态条件的机制和保证状态连续性的机制是紧密的结合在一起的。
应用推荐