What is the difference between spawn and fork?



What is the difference between spawn and fork?..

Answer / Anuj Kumar Shukla

Spawn creates a new child process with its own memory space, while fork creates a copy of the parent process with shared memory space. Spawn is used for executing external scripts or programs, while fork can be used to create multiple processes within a Node.js application.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

List down the major security implementations within node.js?

1 Answers  


How do you delete a directory using node.js?

1 Answers  


Required node developer with 3+yrs of genuine Experience work location india its work from home job

1 Answers  


Which database is best for node js?

1 Answers  


Why is node popular?

1 Answers  


How Grunt and Gulp deal with Task Automation?

1 Answers  


What is the difference between setImmiediate vs nextTick?

1 Answers  


Explain chaining in node.js?

1 Answers  


How to use aggregation in mongoose?

1 Answers  


How do you get information of a file using node.js?

1 Answers  


What is the difference between angular and node.js?

1 Answers  


Explain node.js web application architecture?

1 Answers  


Categories