Node.js · Middle · Question 53 of 75
What does child_process.fork() do?
- 1Copies the current process's memory like Unix
fork() - ✓Correct answer: Starts a new Node.js process running a module, with an IPC channel for
send()/on("message") - 3Creates a new thread inside the same process
Explanation
Forked processes don't share memory with the parent. It's the basis of the cluster module.