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

ExecutorService vs Thread with task buffer. #1131

Open
gallandarakhneorg opened this issue Oct 1, 2023 · 0 comments
Open

ExecutorService vs Thread with task buffer. #1131

gallandarakhneorg opened this issue Oct 1, 2023 · 0 comments

Comments

@gallandarakhneorg
Copy link
Member

gallandarakhneorg commented Oct 1, 2023

The Java ExecutorService is not designed for very-short execution tasks.
According to several sources, in some cases, it is more efficient to use a fixed collection of threads that are looping on a queue of tasks. It is very similar to the batch execution approach.

It may be interesting to test these two approaches and determine when each of them is the best approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant