How many threads Node creates per core when using worker threads? #4817
Unanswered
crealityeducation
asked this question in
Q&A
Replies: 0 comments 4 replies
-
@crealityeducation I think this is likely a better question for the piscina repo - https://github.com/piscinajs/piscina as that is what I believe will be creating the threads. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running node js worker threads on MacBook Air M1. There are 8 core. And using PISCINA to create threads. I'm getting 12 threads. Are those for one core or on all 8 core. How do I know if main thread is blocked/being used in worker threads when running workers for all threads?
When running on all threads, other requests are getting blocked. I want to use all cores and full capacity of threads without blocking main thread.
Also, when I see the CPU utilisation when worker threads are running, its not crossing above 30%. It looks like threads are spawned on single core.
Beta Was this translation helpful? Give feedback.
All reactions