I\'m writing a program that will watch a particular directory for new files containing download URLs. Once a new file is detected, it will create a new process to do the act
You can also use multiprocessing.Process with deamon=True
(daemonic process); the process.start()
method does not block so your parent process can continue working without waiting for its child to finish.
The only caveat is that daemonic processes are not allowed to spawn children.
from multiprocessing import Process
child_process = Process(
target=my_func,
daemon=True
)
child_process.start()
# Keep doing your stuff