We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
interview-go/src/q010.go
Line 57 in 63a7d02
Line 58 in 63a7d02
这两行代码中的解锁和加锁操作并不是原子的,在 57 行解锁后,锁可能会被其他协程拿到。如果锁被一个写操作的协程拿到,就会出现刚写入的键值对又被覆盖成空的情况。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
interview-go/src/q010.go
Line 57 in 63a7d02
interview-go/src/q010.go
Line 58 in 63a7d02
这两行代码中的解锁和加锁操作并不是原子的,在 57 行解锁后,锁可能会被其他协程拿到。如果锁被一个写操作的协程拿到,就会出现刚写入的键值对又被覆盖成空的情况。
The text was updated successfully, but these errors were encountered: