In (some?) Unix systems when you fork
a process the new process will share memory with its predecessor. The memory will be shared as long as it's unchaged. This is called cow, copy-on-write.
I wonder if Node.js process forking has any technical benefits from cow. If it does then what do Node.js processes share exactly?
No.
As the documentation says:
Unlike the
fork(2)
POSIX system call,child_process.fork()
does not clone the current process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With