Spawn
1 min readOct 27, 2018
Spawn in computing refers to a function that loads and executes a new child process.
The parent process can of course continue its execution asynchronously or wait until the child process ends its execution.
Creating a new sub-process requires enough memory in which both the child process and the current program can execute.
In the spawn calls, the child process inherits the environment of the parent — for instance, files that are open when a spawn call is made remain open in the child process.