What are the advantages of concurrent.futures over multiprocessing in Python? What are the advantages of concurrent.futures over multiprocessing in Python? multithreading multithreading

What are the advantages of concurrent.futures over multiprocessing in Python?


The motivations for concurrent.futures are covered in the PEP.

In my practical experience concurrent.futures provides a more convenient programming model for long-running task submission and monitoring situations. A program I recently wrote using concurrent.futures involved monitoring a directory for incoming files over a 2-3 hour window, translating each file as it arrives to a task, submitting it and so on. Future objects returned by the ProcessPoolExecutor allow for tracking task status, providing intermediate status reports etc in a convenient way.