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

Use fixed size thread pool for task execution #72

Merged
merged 1 commit into from
Nov 28, 2017
Merged

Conversation

Duhemm
Copy link
Collaborator

@Duhemm Duhemm commented Nov 28, 2017

There were many problems with the global execution context with nailgun.
I tried that, and it makes logging and task execution work again with
Nailgun.

There were many problems with the global execution context with nailgun.
I tried that, and it makes logging and task execution work again with
Nailgun.
Copy link
Contributor

@jvican jvican left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

import java.util.concurrent.Executors

object ExecutionContext {
private val nCPUs = Runtime.getRuntime.availableProcessors()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make this configurable down the road, mind creating a ticket for it?

@jvican jvican merged commit 556c47c into master Nov 28, 2017
@Duhemm Duhemm deleted the topic/thread-pool branch November 29, 2017 12:32
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

Successfully merging this pull request may close these issues.

None yet

2 participants