The term "spawn" means the creation of a process by a parent process. The parent process can of course continue its execution asynchronously or wait until the child process ends its execution. The multiprocessing library of Python allows the spawning of a process through the following steps:
start()method. This method starts the process's activity.
join()method. It waits until the process has completed its work and exited.
This example shows you how to create a series (five) of processes. Each process is associated with the function
i is the ID associated with the process that contains it:
#Spawn a Process: Chapter 3: Process Based Parallelism import multiprocessing ...