Web Development Node.js Subjective
Aug 16, 2025

What is the difference between spawn(), exec(), and fork() in child processes?

Detailed Explanation
spawn(): streams data, good for large output. exec(): buffers output, good for small output. fork(): special spawn for Node.js files, enables IPC. spawn() most memory efficient, exec() simplest for shell commands.
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback