When I call .spawn to make a new child process in Node.js, does this take advantage of multi-core CPUs?
Reference: https://nodejs.org/api/child_process.html
When I call .spawn to make a new child process in Node.js, does this take advantage of multi-core CPUs?
Reference: https://nodejs.org/api/child_process.html
Yes, a new process will be created and managed by your OS. That new process can be executed in parallel to the main process as long as your computer has at least 2 virtual CPU cores.
© 2022 - 2024 — McMap. All rights reserved.