Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好!发现在《读写锁》一课中,最后的结果不能复现。 #14

Open
Zegele opened this issue Jul 26, 2020 · 0 comments

Comments

@Zegele
Copy link

Zegele commented Jul 26, 2020

当go3写完成后,并不是每次go2读操作结束后,go1写操作才开始。
打印的结果有go2、go1会交替进行的情况。
2 正在读取数据: reading。。。
1 正在写: writing。。。
2 读结束: read over...
1 写结束: write over..
难道是系统的原因?我是win7系统,go是1.12.7版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant