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

Adapt thread pool size to hardware specifications ? #4

Open
Ceylo opened this issue Sep 17, 2011 · 1 comment
Open

Adapt thread pool size to hardware specifications ? #4

Ceylo opened this issue Sep 17, 2011 · 1 comment

Comments

@Ceylo
Copy link
Member

Ceylo commented Sep 17, 2011

No description provided.

@Ceylo
Copy link
Member Author

Ceylo commented Sep 17, 2011

The conclusion is the thread count depends too much on what's being performed in the tasks.

2 threads can be enough for tasks taking full CPU time but, 10 000 threads can be a good count if there are a lot of task waiting for some answer (see http://www.bortzmeyer.org/combien-de-fils.html)

Thus the first best solution is to let the user set this thread count, according to his use.
Another option would be to continuously adapt this thread count according to the CPU usage.

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