Skip to content

Commit

Permalink
auto commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CyC2018 committed Mar 29, 2018
1 parent 3c01b59 commit cb7e05b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions notes/Java 并发.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,6 @@ for(int i = 0; i < 5; i++) {

<div align="center"> <img src="../pics//600px-Sharedmem.jpg"/> </div><br>

除了增加高速缓存之外,为了使得处理器内部的运算单元能尽量被充分利用,处理器可能会对输入代码进行乱序执行(Out-Of-Order Execution)优化,处理器会在计算之后将乱序执行的结果重组,保证该结果与顺序执行的结果是一致的,但并不保证程序中各个语句计算的先后顺序与输入代码中的顺序一致,因此,如果存在一个计算任务依赖另外一个计算任务的中间结果,那么其顺序性并不能靠代码的先后顺序来保证。与处理器的乱序执行优化类似,Java 虚拟机的即时编译器中也有类似的指令重排序(Instruction Reorder)优化。

## 内存模型三大特性

### 1. 原子性
Expand Down

0 comments on commit cb7e05b

Please sign in to comment.