The multiprocessing library allows spawning processes by following these steps:
- Define the process object.
- Call the start() method of the process to run it.
- Call the join() method of the process. It waits until the process has completed the job and then exits.