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

线程安全问题 #19

Open
lihuiby opened this issue Apr 17, 2019 · 0 comments
Open

线程安全问题 #19

lihuiby opened this issue Apr 17, 2019 · 0 comments

Comments

@lihuiby
Copy link

lihuiby commented Apr 17, 2019

LocalRunData 中 使用 LinkedBlockingQueue 来记录需要爬取的url, 这是一个线程安全的队列, 还需要加 volatile 关键字吗 ?

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