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

最大线程1000,能否更改为自定义线程 #4

Open
xiaohuimc opened this issue Feb 2, 2019 · 1 comment
Open

最大线程1000,能否更改为自定义线程 #4

xiaohuimc opened this issue Feb 2, 2019 · 1 comment

Comments

@xiaohuimc
Copy link

最大线程1000,能否更改为自定义线程

@shack2
Copy link
Owner

shack2 commented Mar 24, 2019

不建议更改,不是线程多就一定快,要取决于单个任务的快慢,单个任务快,其实1个线程和1000线程没有区别,反而可能1000个线程还没有1个线程快。正常情况是单个任务比较慢,这时才建议提高线程。当然大多数服务其实是抗不住大批量线程扫描的所以一般建议22-200个线程就可以了。

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