We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4da8c0 commit 339c261Copy full SHA for 339c261
workspace/lesson19/readme.md
@@ -42,7 +42,7 @@
42
}
43
```
44
45
- 执行结果可能有以下3种。这是因为main函数的goroutine和hello这个goroutine是并发执行的,有可能main执行完了,hello还没执行,这个时候只打印main end。有可能hello先执行完,main后执行完,也可能反过来。所以共有3种情况。
+ 执行结果可能有以下3种:
46
47
* main end // 只打印main end
48
@@ -54,10 +54,23 @@
54
55
main end
56
57
+ 这是因为main函数的goroutine和hello这个goroutine是并发执行的,有可能main执行完了,hello还没执行,这个时候只打印main end。有可能hello先执行完,main后执行完,也可能反过来。所以共有3种情况。
58
+
59
* 多个goroutine之间可以通过channel来通信
60
61
## channel
62
63
* 定义
64
65
* 使用
66
67
68
69
+## 并发同步和锁
70
71
72
73
+## 原子操作
74
75
76
0 commit comments