Differentiate between spawn() and fork() methods in Node.js?

The child_process.spawn() method spawns the child process asynchronously, without blocking the Node.js event loop.

child_process.fork(): spawns a new Node.js process and invokes a specified module with an IPC communication channel established that allows sending messages between parent and child.

Comments

Popular posts from this blog

What test framework did you use to test your nodejs applications

What is V8 Engine? What is the relationship between Node.js and V8?