Skip to content

Commit 339c261

Browse files
committed
update readme
1 parent a4da8c0 commit 339c261

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

workspace/lesson19/readme.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343
```
4444

45-
执行结果可能有以下3种。这是因为main函数的goroutine和hello这个goroutine是并发执行的,有可能main执行完了,hello还没执行,这个时候只打印main end。有可能hello先执行完,main后执行完,也可能反过来。所以共有3种情况。
45+
执行结果可能有以下3种
4646

4747
* main end // 只打印main end
4848

@@ -54,10 +54,23 @@
5454

5555
main end
5656

57+
这是因为main函数的goroutine和hello这个goroutine是并发执行的,有可能main执行完了,hello还没执行,这个时候只打印main end。有可能hello先执行完,main后执行完,也可能反过来。所以共有3种情况。
58+
5759
* 多个goroutine之间可以通过channel来通信
5860

5961
## channel
6062

6163
* 定义
64+
6265
* 使用
6366

67+
68+
69+
## 并发同步和锁
70+
71+
72+
73+
## 原子操作
74+
75+
76+

0 commit comments

Comments
 (0)