spawn — new process. fork — new Node.js process with IPC.
1// spawn - any executable2const child = spawn("ls", ["-la"]);3 4// fork - Node.js only5const child = fork("./worker.js");6child.send({ msg: "hello" });