The multiprocessing module allows—through the daemonic option—to run background processes. In the following example, two processes are defined:
- background_process with their daemon parameter set to True
- NO_background_process with their daemon parameter set to False