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

ThreadPool线程个数 #113

Open
ximitiejiang opened this issue Jan 29, 2023 · 1 comment
Open

ThreadPool线程个数 #113

ximitiejiang opened this issue Jan 29, 2023 · 1 comment

Comments

@ximitiejiang
Copy link

请教下为什么线程池仅设置线程个数为1或者2?难道不应该是cpu核数吗?
ThreadPool::ThreadPool() : _active_wait(10000) { _thread_num = get_cpu_num() > 1 ? 2 : 1; }

@TomasRan
Copy link
Collaborator

因为目前主要是arm端优化,所以这块默认固定2线程以下,后续我们会进行完善。

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