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

有块代码逻辑想请教一下作者 #58

Open
JasonCL2015 opened this issue Mar 4, 2020 · 0 comments
Open

有块代码逻辑想请教一下作者 #58

JasonCL2015 opened this issue Mar 4, 2020 · 0 comments

Comments

@JasonCL2015
Copy link

image

如上图,SeimiCrawlerBootstrapListener中的line74,在这个嵌套循环中,请问一下为什么要多个线程来执行同一个crawler?在SemiProcessor中,其中一个线程优先执行完queue.bPop(crawlerModel.getCrawlerName())这句后,其它线程不就一直死循环下去吗?请问为什么这么设计呢?

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