Lock coarsening is the process of merging adjacent synchronized blocks that use the same 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,搜索代码以引用它可能不太容易。
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.
如果在同一个锁对象上,自旋刚刚成功过,并且持有锁的线程正在运行中,那么自旋很有可能再次成功。
What are the names of the function modules that will be generated upon activation of a lock object?
在激活一个加锁对象时生成的功能模块的名字是什么?
As with implicit locks, only one thread can own a lock object at a time.
同严格实现的锁一样,一个线程一次只能拥有一个锁对象。
As with implicit locks, only one thread can own a lock object at a time.
同严格实现的锁一样,一个线程一次只能拥有一个锁对象。
应用推荐