adspace


What is the difference between spawn and fork?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is node js losing popularity?

588


How we can read a file in node js?

567