DEV Community

Discussion on: Node.js fork is not what you think!

Collapse
 
thorx86 profile image
Athaariq Ardhiansyah

What operating system does under the hoods, is when we call fork(), it copies entire process state to a new one with a new PID.

The copy-on-write behavior still there, especially when you're running NodeJS under Linux-based machine. I already post the technical explanation at StackOverflow.