As with implicit locks, only one thread can own a lock object at a time.
同严格实现的锁一样,一个线程一次只能拥有一个锁对象。
Lock coarsening is the process of merging adjacent synchronized blocks that use the same lock object.
锁粗化就是把使用同一锁对象的相邻同步块合并的过程。
Wuhan "rare mineral treasure" marketing is successful positioning, sales promotion, lock object.
武汉“稀世宝矿泉水”的营销特点就是成功定位、锁定销售对象、重点宣传。
What are the names of the function modules that will be generated upon activation of a lock object?
在激活一个加锁对象时生成的功能模块的名字是什么?
For example, if the lock object is of class object, it may not be easy to search the code for references to it.
例如,如果锁对象的类别是Object,搜索代码以引用它可能不太容易。
Before entering the critical section, the lock method of the ReentrantLock object is invoked to try and obtain the lock.
在进入关键部分之前,调用ReentrantLock对象的lock方法,尝试并获得锁。
When the lock object is created, the system will automatically generate the two function modules required for lock management.
当这个加锁对象创建时,系统会自动生成加锁管理所需的二个功能模块。
My guess is that it is implemented very conservatively and disabled early based on various conditions like lock object data size and OS specific features.
我猜测这是由于它的实现比较保守,根据不同条件(比如锁对象数据大小和其他OS特定的特性)及早地关掉了它。
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.
如果在同一个锁对象上,自旋刚刚成功过,并且持有锁的线程正在运行中,那么自旋很有可能再次成功。
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)。
Why does DB2 lock this table, row, or object?
为什么DB 2锁住了这个表、行或者对象?
Synchronized methods and blocks allow a thread to lock an object on entry and unlock the object on exit (to the method or block).
同步的方法和代码块允许线程在入口处锁定对象并在出口处解锁(针对方法或代码块)。
You can also specify an object to lock explicitly with a parenthetical parameter.
您还可以指定一个对象用以通过一个附加参数进行显式的锁定。
This synchronized code block acquires the lock associated with the customer class object before it executes.
同步的代码块在执行之前需要与客户类对象相关的锁。
When this happens, the thread failing to acquire the lock is put into a logical queue of lock contenders for the object.
当发生这种情况时,没有获得锁的线程被置于对象的锁争用者的一个逻辑队列中。
A new object is allocated from the end of this cache without the need to grab the heap lock, so it is very efficient.
新对象是从这个高速缓存的末端分配的,而不必获取堆锁,因此效率非常高。
When a lock is released, the system chooses the thread from the front of the highest-priority queue of contenders to try to lock the object.
释放锁以后,系统从争用者的最高优先级队列的前端选择线程,以便试图锁定对象。
The P1 thread then needs the same object but cannot acquire the lock until the P3 thread has released it.
P1线程需要同一个对象上的锁,但是在P3线程释放它之前,P1无法得到锁。
A low priority thread (at priority P3) acquires the lock on an object and is pre-empted by a higher priority thread (at priority P1), as the specification mandates.
就像规范要求的那样,一个低优先级线程(优先级p3)获取了一个对象的锁,会被一个高优先级(优先级p1)的线程夺取执行权。
Finally I came to recognize that there seems to be some relation between the enabling of lock elision and the data size of the locked object.
最后,我认识到激活锁省略似乎和被锁对象的数据大小有关系。
This grouping of locks helps programmers identity which ConcurrentHashMap object has the most serious JUC lock contentions.
这样的对锁的分组能够帮助程序员发现哪一个ConcurrentHashMap对象发生了最严重的锁竞争。
64 bytes are required to hold a lock on an object that has no other locks held on it.
需要64个字节来持有某个对象上的锁,在这个对象上,没有持有其它锁。
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.
专家们推荐使用者至少花费车价的百分之十用于购买合适的锁——当然两个更为理想——并且始终把车架和某坚固物体一起锁上。
So for example, instead of concurrent linked lists, we use dual concurrent lock circular arrays, so we have the benefits of non blocking concurrency without object creation.
因此,相对于并发链表,我们采用了二重并发锁循环数组(dual concurrent lock circular arrays),这样无需创建对象就能享受到非阻塞并发带来的好处。
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,您必须持有该对象的锁。
32 bytes are required to record a lock on an object that has an existing lock held on it.
需要32个字节来记录某个对象上的锁,在这个对象上,已经持有一个锁。
Object.wait releases the object lock and the thread waits.
wait释放对象锁,线程等待。
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字段中所保存的对象调用同步方法。
In a cupboard, under lock and key, she kept a mysterious object of which she thought a great deal.
她有一件非常喜爱的东西,老锁在一个柜子里,秘不告人。
How does the Lock statement determines the order of granting object access?
如何确定授予对象访问锁语句的顺序吗?
应用推荐