搜索优化
网页
图片
视频
学术
词典
地图
更多
航班
笔记本
ReentrantLock
网络
可重入锁;重进入锁
网络释义
1.
可重入锁
什么是
可重入锁
(
ReentrantLock
)? 当一个线程进入某个对象的一个synchronized的实例方法后,其它线程是否可进入此对象 …
blog.csdn.net
|
基于6个网页
2.
重进入锁
Mercy Blog - BlogJava ... 3.1.1.1 核心- AbstractQueuedSynchronizer 3.1.1.2
重进入锁
-
ReentrantLock
...
www.blogjava.net
|
基于2个网页
例句
释义:
全部
全部
,
可重入锁
可重入锁
,
重进入锁
重进入锁
类别:
全部
全部
,
口语
口语
,
书面语
书面语
,
标题
标题
,
技术
技术
来源:
全部
全部
,
字典
字典
,
网络
网络
难度:
全部
全部
,
简单
简单
,
中等
中等
,
难
难
更多例句筛选
收起例句筛选
1.
However
,
the
existence
of
these
obvious
benefits
are
not
a
good
enough
reason
to
always prefer
ReentrantLock
to
synchronized
.
但是
,
这些
明显
存在
的
好处
,
还
不足
以
成为
用
ReentrantLock
代替
synchronized
的
理由
。
www.ibm.com
2.
You
'll
see
that
atomic
variables
offer
an
additional
improvement
over
ReentrantLock
,
which already
had
a
big
advantage
over
synchronization
.
您
将
看到
,
虽然
ReentrantLock
拥有
比
同步
更多
的
优点
,
但
相对
于
ReentrantLock
,
原子
变量
提供
了
其他
改进
。
www.ibm.com
3.
As a bonus
,
the
implementation
of
ReentrantLock
is far
more
scalable
under
contention
than
the
current
implementation
of
synchronized
.
除此之外
,
与
目前
的
synchronized
实现
相比
,
争用
下
的
ReentrantLock
实现
更
具
可
伸缩性
。
www.ibm.com
4.
Or
even
rewrite
our
existing
synchronized
code
in
terms
of
ReentrantLock
?
或者
甚至
用
ReentrantLock
重写
我们
现有
的
synchronized
代码
?
www.ibm.com
5.
The
stated
goal
was to
answer
the
question
,
"
Which
is
faster
,
synchronization
or
ReentrantLock
?
"
此举
的
目的
是
回答
以下
问题
:
“
哪
一个
更快
,
同步
还
是
ReentrantLock
?
”
www.ibm.com
6.
ReentrantLock
,
in turn,
uses
atomic
variables
to
maintain
the
queue
of
threads
waiting
for the
lock
.
然后
,
ReentrantLock
使用
原子
变量
来
维护
等待
锁定
的
线程
队列
。
www.ibm.com
7.
However
,
using
the
new
ReentrantLock
approach
,
you
will
see
a
blocked
count
of
zero
.
但是
,
使用
新
的
ReentrantLock
方式
,
会
看到
一个
为
0
的
阻塞
计数
。
www.ibm.com
8.
Listing
1
.
Protecting
a
block
of
code
with
ReentrantLock
.
清单
1
.
用
ReentrantLock
保护
代码
块
。
www.ibm.com