-
Notifications
You must be signed in to change notification settings - Fork 1.9k
how to create new forkjoinpool context like CommonPool #321
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
Comments
Currently, there is no such option. |
Are you looking for something like
However the JVM 10 works well in a container. |
The downside of this approach is that now you should explicitly use new dispatcher everywhere. |
thanks for your reply,can i use this 'ForkJoinPool(2).asCoroutineDispatcher()' way in production? |
our k8 docker cluster use cpu sharing mode with mashine @fvasco ,so the 'Runtime.getRuntime().availableProcessors() ' is not my container's cpu count |
This was fixed in JVM 10, alternatively you can safety use |
thanks @fvasco |
in our situation,runtime cpu core size is too large because of the docker,so i want to create new forkjoinpool and use it as the coroutine's running context,there is no docs about how to do that,can anyone show me
The text was updated successfully, but these errors were encountered: