Skip to content

Commit

Permalink
翻译修正-管程(Monitor)
Browse files Browse the repository at this point in the history
  • Loading branch information
renfufei committed Jun 30, 2019
1 parent 65503b8 commit c44fac3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tiemao_2014/HotSpot_VM_Options/HotSpot_VM_Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ JVM选项大致可以分为以下几类:
<td>-XX:-UseSerialGC</td><td>使用串行垃圾收集(serial garbage collection). (开始引入: 5.0.)</td>
</tr>
<tr valign="top">
<td>-XX:-UseSpinning</td><td>进入操作系统线程同步代码之前,在Java监视器锁(monitor)上启用自旋锁优化(naive spinning). (只适用于 1.4.2 以及 5.0.) [1.4.2, multi-processor Windows platforms: true]</td>
<td>-XX:-UseSpinning</td><td>进入操作系统线程同步代码之前,在Java的管程(Monitor)上启用自旋锁优化(naive spinning). (只适用于 1.4.2 以及 5.0.) [1.4.2, multi-processor Windows platforms: true]</td>
</tr>
<tr valign="top">
<td>-XX:+UseTLAB</td><td>使用 thread-local 对象分配 (从 1.4.0 开始引入, 使用的是 UseTLE 优先.) [1.4.2 及更早版本, x86架构或者带 -client 选项时为: false]</td>
Expand Down
4 changes: 2 additions & 2 deletions tiemao_2017/20_hprof/20_hprof.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ In J2SE Version 5.0, HPROF has been implemented on the new Java Virtual Machine

HPROF is capable of presenting CPU usage, heap allocation statistics, and monitor contention profiles. In addition, it can also report complete heap dumps and states of all the monitors and threads in the Java virtual machine. HPROF can be invoked by:

HPROF能够提供的数据包括: CPU使用率,堆内存分配情况统计,以及监视锁的争用情况分析。 此外,还可以执行完整的堆转储,列出JVM中所有的 monitor 和 thread。调用HPROF的方法如下:
HPROF能够提供的数据包括: CPU使用率,堆内存分配情况统计,以及管程(Monitor)的争用情况分析。 此外,还可以执行完整的堆转储,列出JVM中所有的 管程(Monitor)线程(thread)。调用HPROF的方法如下:

```shell
java -agentlib:hprof[=options] XXXXXXXXClass
Expand Down Expand Up @@ -60,7 +60,7 @@ Option名称/值 说明 默认值
--------------------- ----------- -------
heap=dump|sites|all 堆内存分析(profiling) all
cpu=samples|times|old CPU 使用情况 off
monitor=y|n 监视锁(monitor)争用情况 n
monitor=y|n 管程(Monitor)争用情况 n
format=a|b 输出文本/a;还是二进制/b; a
file=<file> 指定输出文件 java.hprof[.txt]
net=<host>:<port> 将输出数据通过socket发送 off
Expand Down
2 changes: 1 addition & 1 deletion tiemao_2019/18_java-concurrency/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Typical problems in Java concurrency:
- 死锁
- 死锁预防
- 饥饿和公平
- 嵌套监控锁定
- 嵌套管程闭锁(Monitor Lockout)
- 了条件

Java concurrency constructs that help against the issues above:
Expand Down

0 comments on commit c44fac3

Please sign in to comment.