A thread can simultaneously hold more than one lock, and these locks might have been acquired in a certain order.
一个线程可以同时持有多个锁,并且可能已经按某种顺序获得了这些锁。
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返回值)。
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.
在一个存在大量锁的系统中(内核就是这样一个系统),通常在代码中需要一次性控制多个锁。
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 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驱动的功能,如位置保存并返回到首页。
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.
我不禁觉得奇怪;这座我所熟悉的贮水水闸,这种极简单,极土气的贮水水闸,今天居然还保留著。
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的锁。这是因为等待状态条件的机制和保证状态连续性的机制是紧密的结合在一起的。
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.
斯密、威廉·配第和约翰·洛克等的早期利率理论认为,利率是由借贷资本的供求所决定的。
Press and hold the "Unlock" button on the first key while pressing the center "Lock" button three ti mes.
先在第一把钥匙上按下并且长按“解锁”键,在长按“解锁”键的同时按三下“上锁”键。
At last they declared to me that I was becoming dangerous and that they should lock me up in a madhouse if I did not hold my tongue...
最后,他们向我宣布,我对他们构成了危害,如果我不闭上嘴的话,就要把我关进疯人院。
At last they declared to me that I was becoming dangerous and that they should lock me up in a madhouse if I did not hold my tongue...
最后,他们向我宣布,我对他们构成了危害,如果我不闭上嘴的话,就要把我关进疯人院。
应用推荐