When using multiprocessing to time the function, we need to eventually terminate the process even if the function succeeds. I believe it is also a good practice to join the process in the end.
This resolved an error I was running across, namely: OSError: [Errno 24] Too many open files.
When using multiprocessing to time the function, we need to eventually terminate the process even if the function succeeds. I believe it is also a good practice to join the process in the end.
This resolved an error I was running across, namely:
OSError: [Errno 24] Too many open files
.