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
1.4m articles
1.4m replys
5 comments
57.0k users