diff --git a/docs/notes/Java 并发.md b/docs/notes/Java 并发.md index 99c2925d..4d4815ae 100644 --- a/docs/notes/Java 并发.md +++ b/docs/notes/Java 并发.md @@ -1225,7 +1225,7 @@ volatile 关键字通过添加内存屏障的方式来禁止指令重排,即 在一个线程内,在程序前面的操作先行发生于后面的操作。 -

+

### 2. 管程锁定规则 @@ -1233,7 +1233,7 @@ volatile 关键字通过添加内存屏障的方式来禁止指令重排,即 一个 unlock 操作先行发生于后面对同一个锁的 lock 操作。 -

+

### 3. volatile 变量规则 @@ -1241,7 +1241,7 @@ volatile 关键字通过添加内存屏障的方式来禁止指令重排,即 对一个 volatile 变量的写操作先行发生于后面对这个变量的读操作。 -

+

### 4. 线程启动规则 @@ -1249,7 +1249,7 @@ volatile 关键字通过添加内存屏障的方式来禁止指令重排,即 Thread 对象的 start() 方法调用先行发生于此线程的每一个动作。 -

+

### 5. 线程加入规则 @@ -1257,7 +1257,7 @@ Thread 对象的 start() 方法调用先行发生于此线程的每一个动作 Thread 对象的结束先行发生于 join() 方法返回。 -

+

### 6. 线程中断规则 diff --git a/docs/notes/pics/54e6d499-80df-488e-aa7e-081766c41538.jpg b/docs/notes/pics/54e6d499-80df-488e-aa7e-081766c41538.jpg new file mode 100644 index 00000000..0ffa2a5b Binary files /dev/null and b/docs/notes/pics/54e6d499-80df-488e-aa7e-081766c41538.jpg differ diff --git a/docs/notes/pics/5e6e05d6-1028-4f5c-b9bd-1a40b90d6070.jpg b/docs/notes/pics/5e6e05d6-1028-4f5c-b9bd-1a40b90d6070.jpg new file mode 100644 index 00000000..f2a6c03a Binary files /dev/null and b/docs/notes/pics/5e6e05d6-1028-4f5c-b9bd-1a40b90d6070.jpg differ diff --git a/docs/notes/pics/94414cd3-5db9-4aca-a2af-539140955c62.jpg b/docs/notes/pics/94414cd3-5db9-4aca-a2af-539140955c62.jpg new file mode 100644 index 00000000..5c53d38b Binary files /dev/null and b/docs/notes/pics/94414cd3-5db9-4aca-a2af-539140955c62.jpg differ diff --git a/docs/notes/pics/bc5826f5-014d-47b4-9a76-d86b80968643.jpg b/docs/notes/pics/bc5826f5-014d-47b4-9a76-d86b80968643.jpg new file mode 100644 index 00000000..b27cd02f Binary files /dev/null and b/docs/notes/pics/bc5826f5-014d-47b4-9a76-d86b80968643.jpg differ diff --git a/docs/notes/pics/de9d8133-4c98-4e07-b39c-302e162784ea.jpg b/docs/notes/pics/de9d8133-4c98-4e07-b39c-302e162784ea.jpg new file mode 100644 index 00000000..4a923dd8 Binary files /dev/null and b/docs/notes/pics/de9d8133-4c98-4e07-b39c-302e162784ea.jpg differ diff --git a/docs/pics/54e6d499-80df-488e-aa7e-081766c41538.jpg b/docs/pics/54e6d499-80df-488e-aa7e-081766c41538.jpg new file mode 100644 index 00000000..0ffa2a5b Binary files /dev/null and b/docs/pics/54e6d499-80df-488e-aa7e-081766c41538.jpg differ diff --git a/docs/pics/5e6e05d6-1028-4f5c-b9bd-1a40b90d6070.jpg b/docs/pics/5e6e05d6-1028-4f5c-b9bd-1a40b90d6070.jpg new file mode 100644 index 00000000..f2a6c03a Binary files /dev/null and b/docs/pics/5e6e05d6-1028-4f5c-b9bd-1a40b90d6070.jpg differ diff --git a/docs/pics/94414cd3-5db9-4aca-a2af-539140955c62.jpg b/docs/pics/94414cd3-5db9-4aca-a2af-539140955c62.jpg new file mode 100644 index 00000000..5c53d38b Binary files /dev/null and b/docs/pics/94414cd3-5db9-4aca-a2af-539140955c62.jpg differ diff --git a/docs/pics/bc5826f5-014d-47b4-9a76-d86b80968643.jpg b/docs/pics/bc5826f5-014d-47b4-9a76-d86b80968643.jpg new file mode 100644 index 00000000..b27cd02f Binary files /dev/null and b/docs/pics/bc5826f5-014d-47b4-9a76-d86b80968643.jpg differ diff --git a/docs/pics/de9d8133-4c98-4e07-b39c-302e162784ea.jpg b/docs/pics/de9d8133-4c98-4e07-b39c-302e162784ea.jpg new file mode 100644 index 00000000..4a923dd8 Binary files /dev/null and b/docs/pics/de9d8133-4c98-4e07-b39c-302e162784ea.jpg differ