Skip to content

Does child process fork() is same as spawn with explicit 'ipc' on Windows ? #5011

Answered by cjihrig
projektorius96 asked this question in Q&A
Discussion options

You must be logged in to vote

spawn() is a general purpose function for creating child processes. spawn() can be used to create Node.js child processes.

fork() is built on top of spawn(). It is only used for spawning Node.js child processes.

fork() does create an IPC channel. spawn() does not create an IPC channel by default, but can be configured to do so.

Check out the fork() docs.

Replies: 0 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@projektorius96
Comment options

@cjihrig
Comment options

cjihrig Dec 8, 2022
Collaborator

Answer selected by projektorius96
Comment options

You must be logged in to vote
3 replies
@cjihrig
Comment options

cjihrig Dec 8, 2022
Collaborator

@projektorius96
Comment options

@cjihrig
Comment options

cjihrig Dec 8, 2022
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants