adspace
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