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

请问如果多个线程对这个队列进行写和读时,需要加锁吗? #6

Open
wilikeit opened this issue Mar 5, 2023 · 2 comments

Comments

@wilikeit
Copy link

wilikeit commented Mar 5, 2023

有多个线程对创建的队列 进行写,有一个线程读这个队列 ,这种情况 需要加锁吗?

@czasg
Copy link
Owner

czasg commented Mar 5, 2023

不需要,内置了锁

@wilikeit
Copy link
Author

不需要,内置了锁

好的。那方便多了

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

2 participants