In single-threaded languages (like Nodejs and Python), one way to use all CPU cores for CPU-bound workloads is to use multi-processing.
If my CPU has n cores and my script forks n sub-processes, what's the guarantee that each sub-process will run on a separate CPU core? Does the language runtime delegate this to the OS?
n
2.1m questions
2.1m answers
60 comments
57.0k users